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

  1. Switch to the new user account. $ su – newuser.
  2. Create .ssh folder in home directory. $ mkdir ~/.ssh.
  3. Create authorized_keys file in side the .ssh folder and add the public key. Use your favorite text editor for this. …
  4. Verify SSH remote login.

How do I give someone access to my ssh?

Please note that all commands given below should be run as root or sudo user.

  1. 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. …
  2. Deny SSH access to a user or group. …
  3. Disable SSH Root login.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest