Webfaction + ssh key
Step by step instruction:
Local:
cd ~/.ssh/
ssh-keygen -t dsa
name_of_your_new_key
[enter]
[enter]
vim config
Add:
- Host webfaction
- Port 22
- User your_login
- IdentityFile path_to_your_key_file eg. /home/username/.ssh/key_name
Add:
- server_ip webfaction
On server:
mkdir .ssh
cat key_name >> .ssh/authorized_keys
chmod 701 ~/
chmod 700 ~/.ssh
chmod 600 .ssh/authorized_keys
and voila, now you can login to webfaction with: ssh webfaction
I hope it will help someone
Post a Comment