How Do I Give Someone an Ssh Access in Ubuntu?
Contents How Do I Give Ssh Permission to User in Ubuntu? Add Public Key to Allow Remote Ssh Login for the New User Switch to the New User Account. $ Su –...
Contents
How do I give ssh permission to user in Ubuntu?
Add public key to allow remote SSH login for the new user
- Switch to the new user account. $ su – newuser.
- Create .ssh folder in home directory. $ mkdir ~/.ssh.
- Create authorized_keys file in side the .ssh folder and add the public key. Use your favorite text editor for this. …
- Verify SSH remote login.
Must Read
How do I give someone access to my ssh?
Please note that all commands given below should be run as root or sudo user.
- Allow SSH access to a user or group. To allow SSH access for a particular user, for example sk, edit sshd_config file: $ sudo vi /etc/ssh/sshd_config. …
- Deny SSH access to a user or group. …
- Disable SSH Root login.