Solved

SSH - switch local terminals (to ttyv0)

Posted on 2006-11-11
6
1,585 Views
Last Modified: 2013-12-23
I have a FreeBSD-Box (6.1, without X) which I'm accessing both locally and remotely through SSH.

Locally, I executed portmanager on the first console. My problem is that portmanager takes a really long time to finish and often interrupts because it needs user input. Locally, I just switch between the consoles using Alt+Fx and thus am able to check on console ttyv0 if some input is needed. But I don't see any way how I can do the same thing remotely through SSH. But then again, I'm quite new to SSH, maybe there's an easy way?

Thanks for any help in advance!
Troja
0
Comment
Question by:troja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 75 total points
ID: 17923425
You have to install misc/screen which allows to detach terminal programs between logins.
0
 
LVL 1

Author Comment

by:troja
ID: 17925587
I already found this program on the net, still I coulnd't yet figure out how it helps me. Can you provide step by step instructions how to get ttyv0 on the screen?

Screen is installed and working so you can skip this part, just need the instructions from within screen.

Thanks.
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 25 total points
ID: 17926160
screen will not help You.
In fact I don't think You can access remote physical console (like tty1) via ssh.
If it was possible, personally I would consider this a security issue.
Let's make a simple exercise: open two xterms under Your X envinronment - can You control one from another? I guess that's what You trying to do?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:troja
ID: 17926707
Yes, that's what I'm trying.

I figured screen will not help me to access any physical tty but if I start a process from screen, I can access it later through another virtual terminal like SSH or X. That's not exactly what I needed now but it will do the trick in the future.

0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 25 total points
ID: 17972216
> ..  just switch between the consoles using Alt+Fx  ..
and
> .. screen will not help me to access any physical tty
one of these statements is wrong: either you have phisical tty (console) or logical tty (megtty, or whatever)
As you said you can switch using Alt keys, I assume your have logical ttys. Then you should be able to use screen.
If you login using ssh, you can escape (not logout/terminate) the session and go back to your original shell using Ctrl-Z (usually),
then you can login again with ssh. Now you have to sessions which you can toggle. Any program using the corresponding tty should then work flawless, you just my get a message like:
  (tty input)

Hope this helps.
0
 
LVL 1

Author Comment

by:troja
ID: 17972289
Thanks all for your input. As I said, I'm using screen now to do what I was looking for. The way I see it it's the only way to start a process on one console and to follow it on another one. And it's working fine for me.

Regards
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question