Announcement

Collapse
No announcement yet.

ssh key authantication howto

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ssh key authantication howto

    A great guide to connect via ssh without password !

    http://scripts-net.com/viewtopic.php?f=6&t=13

    #2
    Re: ssh key authantication howto

    The site that is linked to in this topic requires registration before you can see anything.

    Comment


      #3
      Re: ssh key authantication howto

      I didn't register on that site so I don't know how they have done it. But here is what I have setup:

      In the terminal give the following commands:

      Code:
      xxx:~$ cd .ssh
      
      xxx:~/.ssh$ ssh-keygen -f {Keyname} -t rsa -N ''
      
      xxx:~/.ssh$ cat {Keyname}.pub | ssh loginname@hostname 'mkdir -m 700 -p .ssh; cat >> .ssh/authorized_keys'
      
      xxx:~/.ssh$ ssh -i {Keyname} loginname@hostname
      In these commands I have put some things in between accolades that you need to replace:
      • {Keyname}: The name that you give to the keypair
      • {loginname}: The loginname you have on the machine you want to connect to
      • {hostname}: The domainname or ip-adres of the machine you want to connect to


      * edit * Totaly forgot that you also need the commands to use the key.

      To login with this key you have to type the following command:

      ssh -i ~/.ssh/{Keyname} {loginname}@{hostname}

      Comment

      Working...
      X