I have multiple servers that I need to remote into. I prefer Cygwin over Putty to do so.
Anyhows - the process of opening my cool Mintty window and then typing the follo
To accomplish this I did the following steps:
Step 1: Created a directory where I installed Cygwin called scripts
Step 2: In this directory created a BASH script called servername.sh
Step 3: servername.sh will have the following contents (a single line):
eval `ssh-agent`;ssh-add;ssh user@servername
(Make sure you substitute user and servername with the appropriate information)
Step 4: Created a shortcut of your Cygwin Terminal icon
Step 5: Pasted it where I wanted it (on my Desktop - but you can chose where you want to place it).
Step 6: Right click and renamed my shortcut (name it my server name)
Step 7: Right click and select Properties
Step 8: In the Target attributes section I have the following line of code -
C:\Cygwin\bin\mintty.exe -e /bin/sh -l -c '/scripts/servername.sh'
And make sure your paths match up with your environment!
Cheers.