J0hnMilt0n

J0hnMilt0n

Reverse Engineer | Android Modder

22 May 2022

SSH Login Without Password

Add remote host to ssh config file

$ nano ~/.ssh/config
Host remotehost
  Hostname <remote host hostname or ip>
  Port <remote host ssh port>
  HostKeyAlias remotehost
  User <your name>

Create public and private keys

$ ssh-keygen

Copy the public key to remote host

$ ssh-copy-id -i ~/.ssh/id_rsa.pub <remote host>

Login to remote host

$ ssh <remote host>

Categories

etc

Tags