Learn how to a build a cloud-first strategyRegister Now


SSH administration

Posted on 2006-05-05
Medium Priority
Last Modified: 2013-12-23
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.

Question by:rkesters
LVL 62

Expert Comment

ID: 16619081
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)
LVL 51

Accepted Solution

ahoffmann earned 2000 total points
ID: 16622490
man sshd

see then command="command" part under AUTHORIZED_KEYS FILE FORMAT

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question