Fill these in once
- Add a short name for the server
cat >> ~/.ssh/config <<'EOF' Host myserver HostName 203.0.113.10 User ubuntu IdentityFile ~/.ssh/id_ed25519 EOF - Connect with just the short name
ssh myserverThe short name works for scp and rsync too, in place of user@address.
- Add a short name for the server
cat >> ~/.ssh/config <<'EOF' Host myserver HostName 203.0.113.10 User ubuntu IdentityFile ~/.ssh/id_ed25519 EOF - Connect with just the short name
ssh myserverThe short name works for scp and rsync too, in place of user@address.
- Add a short name for the server
Add-Content "$env:USERPROFILE\.ssh\config" @" Host myserver HostName 203.0.113.10 User ubuntu IdentityFile ~/.ssh/id_ed25519 "@ - Connect with just the short name
ssh myserver