Skip to main content
2 of 3
edited tags
john
  • 11.1k
  • 2
  • 38
  • 43

Is using a public-key for logging in to SSH any better than saving a password?

Using a public/private key pair is fairly convenient for logging in to frequented hosts, but if I'm using a key pair with no password, is that any safer (or less safe) than a password? The security around my private key file is paramount, but say my magical private key file was just a list of passwords to various hosts, is there a difference?

Nick T
  • 3.5k
  • 5
  • 24
  • 28