Announcement
Collapse
No announcement yet.
ssh key authantication howto
Collapse
This topic is closed.
X
X
-
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
- {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}
- Top
- Bottom
Comment
Comment