0

I need to create a user which can SSH to a server, but can not run any commands or view anything, for the purposes of tunneling the connection without risk of revealing credentials. How do I do this? I looked on google but found no sources.

Edit: Would it also be possible to show a certain message to the user upon login? Instead of the usual 'Last logged in from xxx at yyy'?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
CAllende
  • 3
  • 1

1 Answers1

1

Sleepshell http://www.mariovaldez.net/software/sleepshell/ or rbash http://en.wikipedia.org/wiki/Restricted_shell could be you need.

KaP
  • 452
  • 1
  • 4
  • 16