环境
sice@T:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu/"
SUPPORT_URL="https://help.ubuntu/"
BUG_REPORT_URL="https://bugs.launchpad/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
添加public key到服务端
sice@T:~$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
测试ssh登录
sice@T:~$ ssh sice@T
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-46-generic x86_64)* Documentation: https://help.ubuntu
* Management: https://landscape.canonical
* Support: https://ubuntu/advantage38 updates can be applied immediately.
3 of these updates are standard security updates.
To see these additional updates run: apt list --upgradableFailed to connect to https://changelogs.ubuntu/meta-release-lts. Check your Internet connection or proxy settings
Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Wed Aug 24 21:45:12 2022 from 127.0.0.1
<完>
更多推荐
Ubuntu ssh直接登录
发布评论