This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:2fa:ssh:macos [2021/03/22 11:31] – deul | services:2fa:ssh:macos [2021/03/29 07:45] (current) – deul | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Setup key based login from MacOS====== | ======Setup key based login from MacOS====== | ||
+ | The procedure is very similar to the Linux procedure. So we first need to build a public/ | ||
+ | {{ : | ||
+ | For both question about passphrase, just hit enter (we will not be using passphrases). This will also have generated two files in your personal .ssh directory: | ||
+ | {{ : | ||
+ | |||
+ | The file id_ecdsa.pub must be transferred to the remote host. For this we can use ssh-copy-id: | ||
+ | |||
+ | $ ssh-copy-id -i ~/ | ||
+ | |||
+ | This may produce the following message: | ||
+ | |||
+ | / | ||
+ | The authenticity of host ' | ||
+ | ECDSA key fingerprint is SHA256: | ||
+ | Are you sure you want to continue connecting (yes/no)? yes | ||
+ | |||
+ | Having confirmed the access key to remote-host, | ||
+ | |||
+ | / | ||
+ | / | ||
+ | username@remote-host' | ||
+ | One-time password (OATH) for `username`: | ||
+ | |||
+ | Type your password (and the 2FA passcode) to actually start the file copy. | ||
+ | |||
+ | Number of key(s) added: 1 | ||
+ | | ||
+ | Now try logging into the machine, with: " | ||
+ | and check to make sure that only the key(s) you wanted were added. | ||
+ | |||
+ | The passwordless/ |