computer_science:linux:hardening:linux_passwordless_ssh_login

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer_science:linux:hardening:linux_passwordless_ssh_login [2021/03/07 16:12] – [Using per-host SSH configuration] carlossousacomputer_science:linux:hardening:linux_passwordless_ssh_login [2023/12/01 12:07] (current) – external edit 127.0.0.1
Line 84: Line 84:
 <code bash> <code bash>
 PasswordAuthentication no PasswordAuthentication no
-ChallangeResponseAuthentication no+ChallengeResponseAuthentication no
 UsePAM no UsePAM no
  
Line 97: Line 97:
  
 </code> </code>
 +
 +
 ====== Using per-host SSH configuration ====== ====== Using per-host SSH configuration ======
  
 +===== Edit your .ssh/config =====
 +
 +<code>
 +sudo nano ~/.ssh/config
 +
 +</code>
 +
 +~/.ssh/config eg:
 +
 +<code>Host opportunity
 +    HostName 10.20.30.40
 +    User remoteUser
 +    IdentityFile ~/.ssh/privateKey
 +
 +</code>
 +
 +Connect with:
 +
 +<code>
 +ssh opportunity
 +
 +</code>
  
  • computer_science/linux/hardening/linux_passwordless_ssh_login.1615133576.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)