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.




Network Security Secure-Shell
[Top] [All Lists]

ssh and scponly related query.

Subject: ssh and scponly related query.
Date: Wed, 14 Sep 2005 18:47:38 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I currently use ssh and scponly to restrict users to file transfers
only, with authentication currently carried out using passwords.

However, I was wondering whether it is possible to specify an
alternative shell depending upon the user and authentication method
used.  For example, if using public key authentication I would like
certain users (especially me!) to be able to invoke a bash shell -
however, for all other authentication methods and all other users I
would like it to default to scponly.

I've tried adding an entry to the authorized_keys file specifying
/bin/bash, but this just lead to ssh using scponly as the shell to
invoke bash - which obviously didn't achieve the desired affect!

Many thanks,

Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQIVAwUBQyhiOOgNmph0Y1E2AQLjyw//YsFvHzUihIb8MHN6TqsYQtJi3wjJ6IwF
VHySGSiJ+0OxSAO0xzu/x1hQZI5xUfuA1SnY3Q6LRk3Vo0nMwsjI4jCSsl5PNuDO
Y/hs3+JmRSWjLK6T5U3uovbbQy62C9nX544PWXPwcXGKQfqCkelmYfvav0fTGTHQ
Y4SBRsvSDiTq95XDI0JRjYtG8T80h9lZ0GlXfil4b3B6qsqTz+LxaMA4eDXV9mbI
Mc1eFrp2dG6pqPpVuRfpC5Pm9lDvmzPo1n5Lz6re8iwXIs0IdsLMkcEjNdGKdnDG
s9B5+xgxjTkf2sJ4YiCuH8IL7yWc2PiyodMC538G8ErKoh2ykSrMGeXVvGc4N8ac
ZuNxM7A7J4sgGel6tF4iLAxg2CeMHrGTBCxPTEttZCdBOl8HNKVVPXvnfKbMEmfM
De8hpWBZvoNESx8+dUgE/LFfRQy8F2yIEIIrbel2mTYH4YsDsOMfUmE5JIqNaCPn
nGHF5wt/RhumjGjJxzska9t+NphRwFrvA8c1vQXw9XktFnP9lIeNB1QmTJeczjIT
1760WWzOt2MtRsBEEX5VeubtIbaJgDxfeRJfKeVuQnVAD73RMorgoOdnodM/oU3R
BAGU6lobxm7AImG9Y/q8Np2+WLwvUQq9go7LQXT8OQgoLnCcv/7cn5S6ybd1bS6k
XPmEbtye3cY=
=2pKq
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>
  • ssh and scponly related query., Benjamin Donnachie <=