💻 Software
how to setup a ssh acount with no terminal but port forwarding?
Fresh7 days ago
Mar 15, 20264973 viewsConfidence Score0%
0%
Problem
I am trying to set up a new user account I can give to friends so they can SSH into my forward computer, and only allow forwarding of certain ports. I do not want my friends to have a shell, or be able to change what ports to where they are allowed to forward. example session: joe(friend) connects …
Error Output
ssh -N restricteduser@example.com -p443 -L8080:192.168.1.2:8080 -L1990:127.0.0.1:1990 -L25565:127.0.0.1:25565
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: how to setup a ssh acount with no terminal but port forwarding?
Low Risk
The simplest way that comes to mind for me is to disable SFTP, and change the shell to /usr/sbin/nologin or the like (a program that simply prints "This account is currently not available." and exits) If you have no worries about them storing files …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix