通过ssh连接debian

使用方法

ssh username@ipaddress
[inputpasswd]

root用户默认无法由ssh连接,
可以通过修改配置

sudo vim /etc/ssh/sshd_config

去掉PermitRootLogin前的‘#’,并修改为
PermitRootLogin yes
重启sshd服务

sudo systemctl restart sshd

参考

https://linuxconfig.org/enable-ssh-root-login-on-debian-linux-server

其他

查看服务有无启动

sudo service sshd status

安装ssh工具

Remmina

https://idroot.us/install-remmina-debian-12/

你可能感兴趣的:(ssh,debian,服务器)