Client

  • Generating a new SSH key
1
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • Adding it to the ssh-agent
1
ssh-copy-id -i CUSTOMER root@XXX.XXX.XXX.XXX
  • Copy for pasting your key
1
cat ~/.ssh/id_rsa.pub | xclip -sel clip .

Putty

Server

  • Enable without-password login
1
2
3
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cat /tmp/id_rsa.pub >> authorized_keys
  • Sudo without password
1
echo 'deploy ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/101-deploy