|
|
Yet another method of creating SSH shortcuts
You can find information about the parameters in ~/.ssh/config by typing:
If you find you are being timed out by the remote host when you stop typing for a minute or two, you can add the following at the beginning of the file to send a "keep alive" signal over the link every thirty seconds for an hour:
So that you don't continually get asked if the security key is OK, you can give SSH both the true name for the remote host and the name you are using for it (which will have to be different if you use it both remotely and locally):
If a firewall guards the host, the Port number is the port number on the firewall that will get you through to the host and the HostName is the address of the firewall. The BatchMode option says you never want to type your password and instead want to use a pair of key files; one stored on your Mac in ~/.ssh/id_dsa.pub and one stored on the remote host in ~/.ssh/id_dsa. For more information on key pairs, type:
To generate a pair of keys, usually you will just have to type:
then copy the two files to the right places, after manually logging on.
Note that NONE of the above applies to you if you can't log on by typing:
where portno, myusername and hostname are as discussed above; i.e., the firewall port, your user name on the remote host and the IP address of the firewall. So try that first.
Yet another method of creating SSH shortcuts
Is it really necessary to turn off strict host key checking? It should only ask once for each remote host. When it asks, accept and store the remote host key. If it ever asks a second time about the same remote host, then you know that the remote host key has changed -- a possible security attack.
Yet another method of creating SSH shortcuts
Is it necessary to use BatchMode? When the keys are set up correctly, ssh doesn't ask for a password nor passphrase, regardless of the batch mode setting. If the keys aren't set up correctly, then my understanding is that batch mode makes the connection fail, whereas without batch mode one at least has a chance to enter the password/passphrase.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|