Linux add SSH account with only proxy privileges

Source: Internet
Author: User
Tags ssh vps free ssh ssh account
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.