可能因为还是新手的原因吧,总是用linux系统不习惯,加上linux系统办公的确没Windows方便。为了能够方便地做笔记(截图、画思维导图等),只好用另外一台电脑远程登录ubuntu(装ubuntu系统的电脑太老了,带不动双系统,新电脑磁盘较小,不想分区)。
ubuntu系统默认不支持ssh,所以要开启ssh服务,还需要安装openssh-server.
sudo apt-get install openssh-server
安装完毕后要查看ssh是否启动
ps -e | grep ssh
看到sshd进程,就说明ssh启动成功。查看ssh的配置文件:
vim /etc/ssh/sshd_config
在这配置文件中可以看到Port端口号,(默认Port=22)。开启ssh需要注释掉:#PermitRootLogin without-password,添加PermitRootLogin yes
重启ssh服务
sudo service ssh restart
或者
sudo /etc/init.d/ssh resart