Windows远程连接Ubuntu服务器

2.windows远程调试工具 openssh-server

安装 openssh-server

$ sudo apt-get update

$ sudo apt-get install -y openssh-server

$ sudo vim /etc/ssh/ssh_config

# 修改...

$ sudo vim /etc/ssh/sshd_config

# 末尾添加一下内容
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

如果root用户无法远程访问

  1. 打开文件:cd /etc/ssh/sshd_config
  2. 修改配置:PermitRootLogin yes
  3. 重启服务:service sshd restart
posted @ 2017-07-09 21:57  _Arvin  Views(196)  Comments(0)    收藏  举报