Ubuntu配置SSH服务

首先,安装openssh-server和openssh-client

 

sudo apt-get install openssh-server openssh-client

 

可以通过编辑/etc/ssh/sshd_config文件来配置OpenSSH

 

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.orignal

 

sudo chmod a-w /etc/ssh/sshd_config.orignal

 

配置完成后重启:

 

sudo /etc/init.d/ssh restart

你可能感兴趣的:(ubuntu,ssh)