Ubuntu下配置SSH服务

来源:互联网 发布:手机windows预览体验 编辑:程序博客网 时间:2024/05/18 03:57

转载于:http://www.cnblogs.com/Huntercat/archive/2008/06/23/1228214.html

 

 

安装OpenSSH
Ubuntu缺省没有安装SSH Server,使用以下命令安装:

            sudo apt-get install openssh-server openssh-client

Ubuntu缺省安装了ssh client。

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

            sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
            sudo chmod a-w /etc/ssh/sshd_config.original

配置完成后重新启动:

            sudo /etc/init.d/ssh restart