快速开通VPS最低权限SSH账号

  • 2
  • 485 views
  • A+
所属分类:软件·服务器

root权限登陆vps服务器,执行如下命令:
useradd -M -s /sbin/nologin -n username //说明,username表示开通的ssh账号
userdel -r 用户名 //删除用户
passwd 用户名 //修改用户密码

快速开通VPS最低权限SSH账号

开通成功后用myentunnel登陆开设好的shh账号连接登陆:

[23:21:28 10/20] Launching: plink.exe "www.5yun.org" -N -ssh -2 -P 22 -l chubin -C -D 8080 -v
[23:21:28 10/20] 加载plink核心中...
[23:21:29 10/20] plink.exe: Looking up host "www.5yun.org"
[23:21:29 10/20] plink.exe: Connecting to www.5yun.org port 22
[23:21:29 10/20] plink.exe: We claim version: SSH-2.0-PuTTY_Snapshot_2010_03_31:r8911
[23:21:29 10/20] plink.exe: Server version: SSH-2.0-OpenSSH_5.3
[23:21:29 10/20] plink.exe: Using SSH protocol version 2
[23:21:29 10/20] plink.exe: Doing Diffie-Hellman group exchange
[23:21:29 10/20] plink.exe: Doing Diffie-Hellman key exchange with hash SHA-256
[23:21:30 10/20] plink.exe: Host key fingerprint is:
[23:21:30 10/20] plink.exe: ssh-rsa 2048 43:cc:9d:23:72:0b:40:t5:73:b7:78:37:2e:17:77:98
[23:21:30 10/20] plink.exe: Initialised AES-256 SDCTR client->server encryption
[23:21:30 10/20] plink.exe: Initialised HMAC-SHA1 client->server MAC algorithm
[23:21:30 10/20] plink.exe: Initialised AES-256 SDCTR server->client encryption
[23:21:30 10/20] plink.exe: Initialised HMAC-SHA1 server->client MAC algorithm
[23:21:31 10/20] plink.exe: Using username "chubin2008".
[23:21:31 10/20] plink.exe: GSSAPI authentication request refused
[23:21:31 10/20] plink.exe: Access denied
[23:21:31 10/20] plink.exe: Access denied
[23:21:31 10/20] plink.exe: chubin@www.5yun.org's password:
[23:21:31 10/20] 发送密码中...
[23:21:32 10/20] plink.exe: Sent password
[23:21:32 10/20] plink.exe: Access granted
[23:21:32 10/20] plink.exe: Local port 8080 SOCKS dynamic forwarding
[23:21:38 10/20] 连接已经稳定下来了

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

,输入正确后才能评论!