Contact:[email protected]
You can also use the following: ssh <username>@<servername> another useful option is -v, verbose, you can see the details of the connection. Quick how-to for using SSH between UNIX servers, it also applies to Linux. You will need to create a directory named .ssh in your Home directory for this to work. Instead of telnet app2 use the following: ssh -l <your username> <target server> ex. ssh -l jlewis app2 If you have never logged into this server before, you will get the following. Host key not found from the list of known hosts. Are you sure you want to continue connecting (yes/no)? Type yes Then you will see this message. Host 'app2' added to the list of known hosts. This host key is added to ~/.ssh/known_hosts You are connected via SSH. EASY! This is the most basic use of SSH, the next level is creating a key and putting it on all the servers. We can work towards that in the future. I encourage everyone to modify any scripts to use ssh instead of telnet. It takes a couple of seconds to configure but is seemless afterwards. jas Back to the Index