更改ssh服务远程登录配置

来源:互联网 发布:淘宝哪家mcm高仿 编辑:程序博客网 时间:2024/06/05 16:41

windows:默认远程端口和管理员用户

管理:user:administrator guest port 3389


linux:远程默认连接端口和超级用户

管理员 user:root   普通用户 port 22


更改linux的用户和端口

进入etc/ssh/文件夹中修改sshd_config文件








可以一起加入到配置文件中:

####by dancheng####

Port 52113

PermitRootLogin no         #root can't login at ssh

PermitEmptyPasswords no

UseDNS no                  #don't use DNS

GSSAPIAuthentication no

####by dancheng####



原创粉丝点击