[openssh-server]install and enable ssh in debian9 / 在debian9上安装并启用ssh
新安装的debian9.8 with XFCE 发现没有ssh,下载debian-9.8.0-amd64-DVD-1.iso并挂在到ESXi虚拟机/media/cdrom0.
清空或保存/etc/apt/sources.list
apt添加光盘为安装源:
apt-cdrom -m -d /media/cdrom0 add
apt update
apt install openssh-server
apt install openssh-client
修改sshd配置:
vi /etc/ssh/sshd_config
改为:
PermitRootLogin yes
PasswordAuthentication yes
重启ssh:
systemctl restart sshd
查看进程: