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/02/15 09:43] – ↷ Page moved from computer_science:linux:linux_passwordless_ssh_login to computer_science:linux:hardening:linux_passwordless_ssh_login carlossousa | computer_science:linux:hardening:linux_passwordless_ssh_login [2023/12/01 12:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux: Configuring Passwordless Login via SSH ====== | ====== Linux: Configuring Passwordless Login via SSH ====== | ||
- | Also Part of: [[: | + | Also Part of: [[: |
===== Summary of Steps: ===== | ===== Summary of Steps: ===== | ||
Line 65: | Line 65: | ||
</ | </ | ||
- | |||
==== Verify that the Passwordless Login Works ==== | ==== Verify that the Passwordless Login Works ==== | ||
Line 85: | Line 84: | ||
<code bash> | <code bash> | ||
PasswordAuthentication no | PasswordAuthentication no | ||
- | ChallangeResponseAuthentication | + | ChallengeResponseAuthentication |
UsePAM no | UsePAM no | ||
Line 99: | Line 98: | ||
</ | </ | ||
+ | |||
+ | ====== Using per-host SSH configuration ====== | ||
+ | |||
+ | ===== Edit your .ssh/config ===== | ||
+ | |||
+ | < | ||
+ | sudo nano ~/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ~/ | ||
+ | |||
+ | < | ||
+ | HostName 10.20.30.40 | ||
+ | User remoteUser | ||
+ | IdentityFile ~/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Connect with: | ||
+ | |||
+ | < | ||
+ | ssh opportunity | ||
+ | |||
+ | </ | ||