ubuntu系统安装openssh

1、ps -A | grep ssh查看系统中有没有ssh进程。

2、如果没有安装sudo apt-get install openssh-server

3、装完重启sudo /etc/init.d/ssh restart即可。

4、在windows中pscp文件过去ubuntu时,报错not a regular file,原因是有中文时会报不合格文件。解决办法是将整个文档打包后传过去。

 

设置ubuntu root用户ssh,

可以对 openssh server进行配置

$ sudo vi /etc/ssh/sshd_config

找到PermitRootLogin no一行,改为PermitRootLogin yes

 

3. 重启 openssh server

猜你喜欢

转载自woailuohui5520-163-com.iteye.com/blog/2101627