Re: restricting ssh access
From: User1001 (supraexpress_at_globaleyes.net)
Date: 03/23/05
- Next message: Patrick Rynhart: "Re: Where is the file that OpenSSH (Windows) uses for logging?"
- Previous message: Nico Kadel-Garcia: "Re: restricting ssh access"
- In reply to: Chuck: "restricting ssh access"
- Next in thread: Chuck: "Re: restricting ssh access"
- Reply: Chuck: "Re: restricting ssh access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Mar 2005 20:03:06 -0600
In Shell RC file for non-login account, add variable checks for SSH
connection; (Open)SSH sets certain environment variables when it
completes a login connection (eg; SSH_CLIENT, SSH_CONNECTION, SSH_TTY,
SSH_ORIGINAL_COMMAND for SCP). Make sure that SSH_ORIGINAL_COMMAND is set
to "scp" (or "sftp"). You might want to check on the "command string"
being passed and decided whether to execute it or not.
This can be tightened up more by using key-only-access where the
AUTHORIZED_KEYS file has additional (OpenSSH) parameters to limit PTY,
port forwarding, et cetera, and can even be used to invoke a specific
command (script) where further checking/restrictions can be implemented.
For OpenSSH - look at the MANual pages. For OpenSSH, SSH.COM (and
others?), look at the Secure Shell book from O'Reilley.
On Tue, 22 Mar 2005 19:04:52 +0000, Chuck wrote:
> Is there a way to prevent ssh access to a user account while still allowing
> sftp or scp file transfers? I don't want the user to be able to get a shell
> prompt or execute commands with ssh, but if they log in to the server using
> another account, I want them to be able to "su" to the restricted account
> and have full shell access. Is this possible, and if so how?
- Next message: Patrick Rynhart: "Re: Where is the file that OpenSSH (Windows) uses for logging?"
- Previous message: Nico Kadel-Garcia: "Re: restricting ssh access"
- In reply to: Chuck: "restricting ssh access"
- Next in thread: Chuck: "Re: restricting ssh access"
- Reply: Chuck: "Re: restricting ssh access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|