Solved

SSH - switch local terminals (to ttyv0)

Posted on 2006-11-11
6
1,582 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Some sers suddenly getting error popup msg 28 93
Can't connect to WAMP server 5 71
VPN Connection WIndows 10 5 61
BGP recommended setup with failover 2 46
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

856 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