Ubuntu ssh直接登录

编程知识 更新时间:2023-05-02 19:01:28

环境

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/advantage

38 updates can be applied immediately.
3 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Failed 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直接登录

本文发布于:2023-04-28 04:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/2804f9dcfab08c1ff32ea0fca08cb7bb.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Ubuntu   ssh

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 107587文章数
  • 27226阅读数
  • 0评论数