SSH login without password

2010-07-05 · 1 min read
tutorials

Open your favorite terminal emulator and type

ssh-keygen -t dsa

(simply enter on whatever it asks you)

try

ssh-copy-id -i ~/.ssh/id_dsa.pub [email protected]

if it fails (you don’t have ssh-copy-id) do

cat ~/.ssh/id_dsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'

give your password and you are ready to go

try:

ssh [email protected]

it should log you in without asking for a password

Foivos Zakkak
Authors
R&D Software Engineer
Foivos (pronounced [‘fivos]) Zakkak is a Software Engineer in IBM’s (previously Red Hat’s) Java platform team working on Mandrel, GraalVM and Quarkus.