ASIC/FPGA Design and Verification Out Source Services
Connecting to a remote system via ssh without a password.
This page discusses how to connect via ssh with no password and gives some tips to manage between assorted remote clients.
- It is desirable in many cases to connect from one machine to another via ssh without having to enter a password. At home I have three linux machines and really makes life easier to connect without password. At work from my cygwin on windows to assorted linux machines.
- In this discussion I assume that there two machines: one at office (ssh client) and at home using ssh server. In this example the office machine connects to home without a password.
- On the office machine inspect the directory: ~/.ssh. If it does not contain a file id_rsa.pub, create it by: ssh-keygen -t rsa.
- Copy the file to home machine: scp ~/.ssh/id_rsa.pub pini@79.178.38.206:~/.ssh/authorized_keys.office_A.
- Notice that I have named this key with customer name.
- When you want to allow free connection from office_A, do the following (and opposite to disable the option):cd ~/.sshvi authorized_keysand either append -one-line-key or delete it. With vi :r authorized_keys.office_A to append.
- You may want to share your thoughts and add your comments. Feedback This Site
- Debug:
To debug you may want to use the -v option of ssh: ssh -v -C -X kuku@192.168.4.77
Permissions: Do the following
chmod go-w ~/
chmod 700 -c ~/.ssh
chmod 600 -c ~/.ssh/authorized_keys
- Another problem that I have recently was involved GSS, so I added to my ~/.ssh/config file the following line:
GSSAPIAuthentication no
- I have also had a problem, in another machine, with the following message (ssh -v prints debug info):
Agent admitted failure to sign using the key
To solve this I typed:
export SSH_AUTH_SOCK=0
Contact me now at: |