in Linux ~ read.

ubuntu 安装配置ssh

1.安装ssh-server

sudo apt-get install openssh-server  

2.设置管理员密码访问

sudo vim /etc/ssh/sshd_config  

  将“PermitRootLogin without-password”注释掉,并在下面添加

PermitRootLogin yes  

3.重启ssh服务

sudo /etc/init.d/ssh restart  

4.即可使用访问,例如:

ssh root@192.168.1.2  
comments powered by Disqus