This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
services:2fa:ssh:linux [2021/03/22 11:19] – deul | services:2fa:ssh:linux [2021/04/11 17:47] – [Setup Linux ssh for key based login] deul | ||
---|---|---|---|
Line 31: | Line 31: | ||
-rw-r--r-- 1 testuser1 users 195 Mar 22 12:13 id_ecdsa.pub | -rw-r--r-- 1 testuser1 users 195 Mar 22 12:13 id_ecdsa.pub | ||
- | The file id_rsa.pub must be transferred to the remote host. For this we can use ssh-copy-id: | + | The file id_ecdsa.pub must be transferred to the remote host. For this we can use ssh-copy-id: |
- | $ ssh-copy-id -i ~/.ssh/id_edcsa.pub username@remote-host | + | $ ssh-copy-id -i ~/.ssh/id_ecdsa.pub username@remote-host |
This may produce the following message: | This may produce the following message: | ||
Line 47: | Line 47: | ||
/ | / | ||
username@remote-host' | username@remote-host' | ||
+ | One-time password (OATH) for `username`: | ||
- | Type your password to actually start the file copy. | + | Type your password |
Number of key(s) added: 1 | Number of key(s) added: 1 |