FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 01-06-2010, 11:07 AM
Adrian von Bidder
Default ssh configuration: ssh / sftp


Is there a magic combination of sshd_config features that allows:
* sftp (password authentication) for most users.

* key only regular ssh sessions for some few users

* forced-command key based auth sessions for most/all users (this is how NX
works: it sets up a key in authrorized_keys with command=nxsession or

The problem I'm struggling with is that settings the user's shell to sftp-
server generally will make NX fail since it executes certain commands via

So I'd need a solution inside ssh: if a password is used, force sftp, if
authentication was via the key, allow regular login with the forced command
with the shell set to something /bin/sh-ish. Is this at all possible?

-- vbi

featured product: Debian GNU/Linux - http://debian.org

Thread Tools

All times are GMT. The time now is 05:16 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org