Many times, because of some special problems, we need to use the agent. We all know Xen VPS build VPN easier, PPTP one-click installation package soon OK. But OpenVZ is a bit troublesome, to TK open TUN/PPP, and then install, may also encounter some inexplicable problems.
Although I also use VPN, but personally think, the VPN also has his trouble place, is each connection once QQ all must re-enter, but also has the input authentication code, this, also inferior ssh convenience. Moreover, the VPN,SSH account is more easily added to the VPS, for the hands of a friend of the VPS, want to use the occasional agent, you can directly with the root user and password connection; If you have too much traffic, would like to provide SSH account to friends, or to users, you may wish to pay attention to the following text.
We provide a free SSH account to others, security issues are the most important, nature can not give the root password (o (∩_∩) o), then, how to open a VPS only proxy privileges SSH account? Very simple, two lines of command to help you!
The code is as follows |
Copy Code |
Useradd-m-s/sbin/nologin-n username (the blue user name modifies itself)
|
The code is as follows |
Copy Code |
passwd username
|
Below, enter 2 times password, OK, an SSH account that only has proxy permission is completed.
Delete Account command: Userdel-r username