LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-02-2009, 03:18 PM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
Provide only ssh access to a guest user


We have a visitor, David.

He wants to ssh david@hishost.com
I want to give David something like a guest account on my system. No GUI access.
So he can login from the command line and my system will immediately initiate ...
ssh david@hishost.com
When that ssh seession is done, I want my system to log him out too.

How can I setup this guest account?
 
Old 08-02-2009, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Not a networking question. Moved to Linux - Newbie.
 
Old 08-02-2009, 03:54 PM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Why can't he just ssh david@hishost.com?
 
Old 08-02-2009, 04:09 PM   #4
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Because David is a visitor:
  • I have been asked to give him ssh access for his work.
  • I really don't know him.
  • This is a temporary situation. He will be gone soon.
  • I will have to do this again for the next visitor, so I can simply change the visitor's access to "bob@theNextHost.com"
  • If a visitor decides to use things like "rtorrent", he should not have access to such things on this system.
  • I want to give the visitor a way out to his own system and not a way in to this system.
 
Old 08-02-2009, 04:24 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
What will he be doing?
What needs to be available?

You could use chroot
http://www.linuxquestions.org/linux/...n_Etch_Mepis_7

Last edited by repo; 08-02-2009 at 04:28 PM.
 
Old 08-02-2009, 04:38 PM   #6
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
What will he be doing?
He needs secure shell access to his own system.
Upon login, I need to force him into "ssh david@hishost.com"

Quote:
Originally Posted by repo View Post
What needs to be available?
ssh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
access to a guest OS via ssh htamayo Linux - Networking 1 04-02-2009 08:58 PM
provide scp access without ssh lothario Linux - Networking 2 04-06-2008 06:15 PM
restricting user access with ssh rob_xx17 Linux - Security 4 01-05-2006 06:22 PM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 04:19 PM
SSH user IP restricted access??? ifm Linux - Security 3 07-21-2002 11:01 AM


All times are GMT -5. The time now is 05:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration