• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

SSH administration

I want to limit what all user can do via SSH, mainly I only want to allow sFTP and SCP,  is there a way to prevent my SSH sever from accepting any other command.

Robert
0
rkesters
Asked:
rkesters
1 Solution
 
gheistCommented:
You cannot. You can code your own channel.c of OpenSSH which does not allow command channels.
(You will dig deeper - changing shell is of no value - users can override that)
0
 
ahoffmannCommented:
man sshd

see then command="command" part under AUTHORIZED_KEYS FILE FORMAT
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now