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?

link|improve this question
feedback

2 Answers

up vote 1 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
link|improve this answer
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

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