Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to start Cygwin and it should instantly connect to some server:

$ ssh user@1.1.1.1

for example, how I can achieve this?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You could create a Windows shortcut with the target set like so (and an icon of your choice):

C:\cygwin\bin\ssh.exe user@1.1.1.1

Or, for better terminal emulation than in the default console window, run it in mintty, setting the shortcut target like this:

C:\cygwin\bin\mintty.exe /bin/ssh user@1.1.1.1
share|improve this answer

Make that the last line of your .bash_profile or .profile

share|improve this answer
    
Not a good solution, because it stops you from running a local bash session. Also, all the stuff in bash startup files such as /etc/profile still gets run, which is a waste of time if you're just gonna ssh somewhere. –  ak2 Mar 31 '11 at 18:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.