You are here Ubuntu SSH配置

Ubuntu SSH配置


By Eric Tou - Posted on 22 二月 2011

环境:Ubuntu Server 10.10

Ubuntu通过openssh实现ssh功能。

Ubuntu默认已经安装了openssh-client,也就是说你可以连接到提供SSH服务的远程计算机

ssh remote-user@remote-computer

要启用SSH服务,你需要安装openssh-server组件

sudo apt-get install openssh-server

安装完成后,输入以下命令,确认SSH Server已正常工作

netstat -tlp

修改SSH的配置文件

sudo nano /etc/ssh/sshd_config

修改配置后需重启SSH服务

sudo /etc/init.d/ssh restart