LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-13-2008, 09:12 AM   #1
kmads
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
alternative to 'ssh -x' on localhost


Hi,

I like to have different user-profiles on my laptop according to what kind of work I'm doing. E.g. an account for studies, an account for specific dev-projects, one for banking etc. etc.

I normally just log in to an account witch is configured with my fav. window-manager and then just use terminals with an ssh-session and X-forwarding to work on the specific projects with a seperate user.

But is ssh with X-forwarding the best (only) way to do it? Or are there alternatives that doesn't suffer from the overhead provided by encrypting all the traffic (mainly the X-connection)?

Best regards,
kmads
 
Old 09-13-2008, 09:23 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why not an unencrypted vnc session?
 
Old 09-13-2008, 10:35 AM   #3
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
you can use sudo user in terminal or gksu -uuser (usually in gnome) (there is a similar command for KDE), if you just want to start apps with the rights of different users
did you mean that?
 
Old 09-14-2008, 04:27 AM   #4
kmads
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TITiAN View Post
you can use sudo user in terminal or gksu -uuser (usually in gnome) (there is a similar command for KDE), if you just want to start apps with the rights of different users
did you mean that?
No, what I meant was more like getting full access to an account through a terminal with X-forwarding. sudo only allows me to execute a command with the right of another user.
I was thinking more in the lines of 'su', but with a X-connection.

Quote:
Originally Posted by billymayday View Post
Why not an unencrypted vnc session?
That would be a way to do it

Thanks to both of you!

Best regards,
kmads
 
Old 09-14-2008, 04:47 AM   #5
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
You can switch to a tty (e.g. press ctrl+alt+F1), login as the user for your needs, and start a new session for another user by tying in startx -- :1. To get back to the standart session, on my system I press ctrl+alt+F7 (could be ctrl+alt+F5 or ctrl+alt+F6 or something, shouldn't hurt to try all Fx-keys as they only switch the sessions). To switch to the extra session, I press (again, on my system) ctrl+alt+F8.
Most desktops (I think KDE, Gnome and XFCE all do) have some extra function to start such a session without the CLI fuss.
Does this help?

Edit: I just tried the system->log out->switch user menu in Gnome. It opens a new gdm interface where a new user can login, just what I ment above. (Posted before so I wouldn't have to type the text again in case the current session was shut down)

Last edited by TITiAN; 09-14-2008 at 04:52 AM.
 
Old 09-14-2008, 08:31 AM   #6
kmads
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TITiAN View Post
You can switch to a tty (e.g. press ctrl+alt+F1), login as the user for your needs, and start a new session for another user by tying in startx -- :1. To get back to the standart session, on my system I press ctrl+alt+F7 (could be ctrl+alt+F5 or ctrl+alt+F6 or something, shouldn't hurt to try all Fx-keys as they only switch the sessions). To switch to the extra session, I press (again, on my system) ctrl+alt+F8.
Most desktops (I think KDE, Gnome and XFCE all do) have some extra function to start such a session without the CLI fuss.
Does this help?
It does! Didn't know about that.

Thanks!

-kmads
 
  


Reply

Tags
localhost, ssh forwarding, terminal, users, xterm


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh in the localhost linderox Linux - Networking 3 02-20-2008 11:05 PM
rsync using alternative ssh port va1damar Linux - Networking 5 01-29-2007 03:22 PM
ssh + pop3 with kmail: Could not connect to host localhost, but ok without ssh Emmanuel_uk Linux - Networking 0 07-20-2006 05:56 PM
Can ssh localhost but not from network? jon_k Linux - Software 7 03-10-2004 07:47 AM
can only connect with ssh to localhost Yaukuai Linux - Security 7 10-12-2001 10:08 AM


All times are GMT -5. The time now is 10:16 PM.

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