Avatar of Balbir Singh
Balbir Singh
Flag for United States of America asked on

How to configure a ssh-server for user and password less port forwarding ?

I test that we can configure a ssh server to let a specific user, say 'demo' to login without any password with below configuration

PasswordAuthentication yes
PermitEmptyPasswords yes

Open in new window


I have also configured this user to have no access to shell and change shell in /etc/passwd to
/usr/sbin/nologin 

Open in new window

for user demo. I would like to understand security concern while I have this config in place. I simply want to use this user for port forwarding purpose and also I do not want to use public/private key for this purpose.

Or is there a way that I can have a ssh-server configured to use port forwarding and ssh client need not to use any user or password?

Best Regards
* SSHSecurity

Avatar of undefined
Last Comment
serialband

8/22/2022 - Mon
SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
serialband

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23