Fill these in once
- Copy your public key to the server
ssh-copy-id ubuntu@203.0.113.10It asks for the server password one last time.
Check it worked
- Log in without a password
ssh ubuntu@203.0.113.10
- Copy your public key to the server
ssh-copy-id ubuntu@203.0.113.10It asks for the server password one last time.
Check it worked
- Log in without a password
ssh ubuntu@203.0.113.10
- Copy your public key to the server
Get-Content "$env:USERPROFILE\.ssh\id_ed25519.pub" | ssh ubuntu@203.0.113.10 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"Windows has no ssh-copy-id, so this does the same thing. It asks for the server password one last time.
Check it worked
- Log in without a password
ssh ubuntu@203.0.113.10