Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

SSH into Moab without a password

Scott Stanfield (MSFT) edited this page Sep 4, 2022 · 1 revision

On your host computer, create a public/private keypair.

cd ~/.ssh
ssh-keygen -f moabkey -t ed25519
ssh-add moabkey
ssh-copy-id -i moabkey [email protected]

Next, create an ssh alias so you can simply type ssh moab to log in.

cd ~/.ssh
cat <EOF >> config
Host moab
    Hostname moab.local
    User pi
    IdentityFile ~/.ssh/moabkey
EOF