Ubuntu20.04通过ssh协议配置远程终端

一、在目标计算机(即被连接的计算机)上操作

1、安装 OpenSSH 服务器:

复制代码
sudo apt update
sudo apt install openssh-server

3、启动并设置 SSH 服务开机自启:

复制代码
sudo systemctl enable --now ssh

二、在源计算机(发起连接的计算机)上操作

1、安装 OpenSSH 客户端:

复制代码
sudo apt update
sudo apt install openssh-client

2使用 SSH 连接目标计算机:

复制代码
ssh username@192.168.1.100(换成你自己要连接的设备名称和IP)

可以通过以下命令查看设备名称:

复制代码
whoami
相关推荐
云动雨颤22 分钟前
Python 自动化办公神器|一键转换所有文档为 PDF
运维·python
Fanmeang31 分钟前
OSPF高级特性之FRR
运维·网络·华为·ip·ospf·spf·frr
小张不嚣张꒰ঌ(˚ᆺ˚)໒꒱31 分钟前
Centos7在yum当中遇到Could not resolve host: mirrorlist.centos.org解决方案
linux·运维·服务器·centos
Sally璐璐33 分钟前
CentOS企业级文件服务器终极部署指南
linux·服务器·centos
Sca_杰37 分钟前
centos指令
linux·运维·centos
几道之旅39 分钟前
centos 7 安装NVIDIA Container Toolkit
linux·运维·centos
DuelCode40 分钟前
Windows VMWare Centos Docker部署Nginx并配置对Springboot应用的访问代理
linux·运维·服务器
myloveasuka1 小时前
信号操作集函数
linux·运维·服务器·c语言·c++·vscode
亦舒.1 小时前
宝塔面板Nginx手动配置负载均衡实战指南
运维·nginx·负载均衡
舒克起飞了2 小时前
linux系统编程——Makefile、GDB调试
linux·运维·服务器