troubleshooting Question

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

Avatar of Balbir Singh
Balbir SinghFlag for United States of America asked on
* SSHSecurity
2 Comments2 Solutions63 ViewsLast Modified:
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

I have also configured this user to have no access to shell and change shell in /etc/passwd to
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
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros