Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .