How to make another login for ssh?
-
So I get that I can change my default login and password, but how do I add an additional one and say limit the access to read only?
I'm setting up netplay with a friend, and I would like to be able to give him ability to ssh into my retropie to ensure we have the same settings without letting him delete records etc... Is this possible?
I have already configured router to allow port 22, and can successfully ssh into my pi from the internet. How do I make a login just for him?
-
Ok figured it out.
First step, is to open your router and add your raspberry pi to the port forwarding. This is easy enough, you will want to use the internal IP of you pi, and open port 22 to tcp. you can usually access your router settings via http://192.168.0.1/ in your browser, providing you are wired directly into the router and not using wifi to connect.
Once this is done you will need the external ip. I found it by going on to my retropie under "retroarch netplay".
You will need this external ip to login from the internet.
this site has the steps on creating a new user:
https://humanwhocodes.com/snippets/2021/03/create-user-linux-ssh-key/
Once done you can open putty from any pc connected to the internet and ssh into your pi by using the external ip.
Expose your pi to the internet at your own risk.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.