Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:linux:hardening:linux_passwordless_ssh_login [2021/03/07 16:12] – carlossousa | computer_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 | + | ChallengeResponseAuthentication |
UsePAM no | UsePAM no | ||
Line 97: | Line 97: | ||
</ | </ | ||
- | ===== Using per-host SSH configuration ===== | ||
+ | |||
+ | ====== Using per-host SSH configuration ====== | ||
+ | |||
+ | ===== Edit your .ssh/config ===== | ||
+ | |||
+ | < | ||
+ | sudo nano ~/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ~/ | ||
+ | |||
+ | < | ||
+ | HostName 10.20.30.40 | ||
+ | User remoteUser | ||
+ | IdentityFile ~/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Connect with: | ||
+ | |||
+ | < | ||
+ | ssh opportunity | ||
+ | |||
+ | </ | ||