LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2007, 09:46 AM   #1
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
SSH to local console (tty)


Using putty from windows, is it possible to ssh into the local tty console?

Or change to the local console after logged in?

(after googling for some time, i can't find any relevant info)
 
Old 08-11-2007, 09:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
not *the* local console no, but check out "screen", it's probably the closest thing to what you're after.
 
Old 08-11-2007, 10:06 AM   #3
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Original Poster
Rep: Reputation: 15
i have used screen before, but i will take a closer look at the features and see if i find something useful.. thanks
 
Old 01-14-2010, 07:59 AM   #4
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Original Poster
Rep: Reputation: 15
i finally found a solution: http://packages.debian.org/lenny/linuxvnc

Creates a vnc server of /dev/tty#
 
Old 01-14-2010, 11:19 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Hmm, interesting, I'm currently looking at using a Screen setup to achieve something similar but can't find any realistic way to make view of a terminal read only for some users.
 
Old 01-15-2010, 06:07 AM   #6
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Original Poster
Rep: Reputation: 15
read only mode is possible with screen, i have a text file saved with some info on how to do it:

Create new session:
screen -S test

Activate multiuser mode:
CTRL+A
multiuser on

Add allowed user(s):
CTRL+A
acladd $username

Remove write rights from session:
CTRL+A
aclchg $username -w "#"

Command to connect to session for the user:
screen -x test
 
Old 01-15-2010, 06:54 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Yeah, but thn you'v got the setuid issues around the binary and other nasties AFAIR.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
console tty assignment in mdk 10.1 bcotton56 General 0 01-11-2007 11:26 PM
How do you change the resolution in the console(tty) ? zahadumy Linux - Software 5 05-17-2006 08:05 AM
tty console switching problem aldar Slackware 2 12-16-2005 07:30 PM
more then 12 tty /console ... apenguinlinux Debian 4 02-21-2005 10:56 PM
direct ssh commands to local tty? mikeybsae Linux - Software 1 08-18-2004 04:42 PM


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

Main Menu
Advertisement
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