ubuntu build ssh

1: Try the sudo ps -e | grep ssh command first, if it returns "xxxx? 00:00:00 sshd", it means the service is started
2: If there is no response, try to start the ssh service, use the command sudo / etc / init. d / ssh start to start the service. If the command is not found, it means that the ssh service is not installed. Enter:
sudo apt-get update (update the installation source)
sudo apt-get install openssh-server (install the ssh service)
sudo ps -e | grep ssh (Check again if the service is started, if it returns "xxxx? 00:00:00 sshd, it means the service started successfully)
sudo /etc/init.d/ssh start (start the service)
sudo service ssh stop (close the service)
sudo service ssh restart

首先查看对方电脑以太网inet 地址:
输入:ifconfig
 ssh prlab(用户名)@10.10.6.66(inet地址)
 传输文件或者文件夹,使用scp指令
 


Published 36 original articles · won praise 1 · views 6384

Guess you like

Origin blog.csdn.net/qq_34291583/article/details/102639033