Email: bknpk@hotmail.com Phone: +972-54-7649119
V

 

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.



  1. 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.
  2. 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.
  3. 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.
  4. Copy the file to home machine:
    scp ~/.ssh/id_rsa.pub pini@79.178.38.206:~/.ssh/authorized_keys.office_A.
  5. Notice that I have named this key with customer name.
  6. When you want to allow free connection from office_A, do the following (and opposite to disable the option):
    cd ~/.ssh
    vi authorized_keys
    and either append -one-line-key or delete it. With vi :r authorized_keys.office_A to append.
  7. You may want to share your thoughts and add your comments. Feedback This Site

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

  9. Another problem that I have recently was involved GSS, so I added to my ~/.ssh/config file the following line:
    GSSAPIAuthentication no

  10. 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:

  ...


I would be happy to offer my services. Call ASAP !


Home

Send mail with Kmail & DCOP

Download Area






Search This Site




new pages on this site