首先要确保你的Linux服务器已经安装了ssh服务。
通过 ps -ef|grep ssh 命令查看ssh服务是否安装并启动了。
修改sshd_config配置文件
sshd_config配置文件所在目录 /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
修改完成后重启ssh服务即可生效,命令如下:
/etc/init.d/ssh restart
首先要确保你的Linux服务器已经安装了ssh服务。
通过 ps -ef|grep ssh 命令查看ssh服务是否安装并启动了。
修改sshd_config配置文件
sshd_config配置文件所在目录 /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
修改完成后重启ssh服务即可生效,命令如下:
/etc/init.d/ssh restart