ssh服务需要安装的包
- openssh-server
- openssh-client(可选,用于连接其他)
步骤
- 安装:apt-get -y install openssh-server
- 启动/停止/重启/状态:service ssh start/stop/restart/status
配置
修改文件:vim /etc/sshd_config,以便远程登录
- 找到:#PermitRootLogin prohibit-password
- 改为:PermitRootLogin yes
修改文件:vim /etc/sshd_config,以便远程登录