Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: openssh: Enabling sftp, but disabling ssh? |
|---|---|
| Date: | Tue, 5 Sep 2006 22:57:45 +0200 |
Alternative 1:
Create a file named sftponly in bin directory:
#!/bin/bash if [ "$*" != "-c /bin/sftp-server" ]; then echo "SFTP only!" exit 1 fi exec $@
chmod 755 /bin/sftponly from a BASH shell replace shell /bin/bash with /bin/sftponly in etc/passwd.
Alternative 2: http://www.sublimation.org/scponly/ Alternative 3: http://www.pizzashack.org/rssh/index.shtml You may also visit a related discussion thread at http://www.itefix.no/phpws/index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPW S_MAN_ITEMS=206 Rgrds Tev http://itefix.no
-----Original Message----- From: Patrick Morris [mailto:pmorris@hermesinfotech.com] Sent: Tuesday, September 05, 2006 6:46 PM To: 'Mark Holden'; secureshell@securityfocus.com Subject: RE: openssh: Enabling sftp, but disabling ssh?Does anybody know if it's possible, using openssh, to allow file transfer to/from a machine, using sftp, for a specific userid, and disallow ssh login/remote command execution for that same userid? Other userids on the machine should be unaffected.You should be able to set the user to an invalid shell (as long as it's listed in /etc/shells).
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: openssh: Enabling sftp, but disabling ssh?, Coleman Kane |
|---|---|
| Next by Date: | SSH key authentication - can only login as root, Tomasz Chmielewski |
| Previous by Thread: | Re: openssh: Enabling sftp, but disabling ssh?, Coleman Kane |
| Next by Thread: | Re: openssh: Enabling sftp, but disabling ssh?, Derek Martin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |