User Tools

Site Tools


services:2fa:ssh:linux

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
services:2fa:ssh:linux [2021/03/22 13:31] jansenservices:2fa:ssh:linux [2021/04/12 06:55] – [Setup Linux ssh for key based login] jansen
Line 33: Line 33:
 The file id_ecdsa.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:
  
-  /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/username/.ssh/id_edcsa.pub"+  /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/username/.ssh/id_ecdsa.pub"
   The authenticity of host 'remote-host (123.123.123.123)' can't be established.   The authenticity of host 'remote-host (123.123.123.123)' can't be established.
   ECDSA key fingerprint is SHA256:tygMarTe3SOjTcY9HzldKThxQzsTeiYHg5JmjB2bxeg.   ECDSA key fingerprint is SHA256:tygMarTe3SOjTcY9HzldKThxQzsTeiYHg5JmjB2bxeg.
Line 47: Line 47:
   /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys   /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
   username@remote-host's password:   username@remote-host's password:
 +  One-time password (OATH) for `username`: 
  
-Type your password to actually start the file copy.+Type your password (and the 2FA passcode) to actually start the file copy.
  
   Number of key(s) added: 1   Number of key(s) added: 1
services/2fa/ssh/linux.txt · Last modified: 2021/07/08 09:21 by deul