We help IT Professionals succeed at work.
Get Started

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

Balbir Singh
Balbir Singh asked
on
60 Views
Last Modified: 2020-01-12
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
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 2 Answers and 2 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE