Access to Remote tty cli via ssh


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Access to Remote tty cli via ssh
# 1  
Old 01-08-2013
Access to Remote tty cli via ssh

Scenario:

I would like the ability to be able to use the cli on a client that has remotely connected to me via my ssh server in my office and use their terminal to work remotely if I am in another remote location.

Ex.

The client reverse ssh's to my remote ssh server in my office.
Code:
ssh -R 10002:localhost:22 client@my-remote-ssh-server

I remotely ssh into my ssh server from another client site.
Code:
ssh -L 3400:localhost:3400 admin@my-remote-ssh-server

and from there I would be connected to the tty of the remote client from wherever I am.

Is this possible?

Code:
ssh -t user@some.domain.com /usr/bin/screen -xRR

or 

ssh -t remote_host screen -r

??
# 2  
Old 01-08-2013
Are you talking about a remote host serial port?
# 3  
Old 01-08-2013
It sounds like
1. session A connects to UNIX box
2. Session B connects to UNIX box
3. session B controls the terminal on session A
4. session B has access to session A's desktop/UNIX box
5. session B can then becomes session B's use on the remote box

IF so try this idea (for ubuntu but it works for linux)

Remote Access to the Ubuntu Linux Desktop - Techotopia
# 4  
Old 01-08-2013
I guess! I prefer VNC, but not every host can X/GUI. The screen does have detach/reattach: Manpage of SCREEN
# 5  
Old 01-10-2013
Many thanks for the reply. We are talking linux(cli) to client(cli). I have always been able to do this to a gui but what I want is access to the cli.Let me clarify:

Code:
A (you(linux), remote) ------ S (server(linux, office) ----- C (client(linux), remote)

1                                          <----------   C sets up reverse ssh session
2                 ----------> A sets up ssh session
3                                          ----------> A wants cli access to C cli

?

---------- Post updated 01-10-13 at 10:45 AM ---------- Previous update was 01-09-13 at 04:35 PM ----------

The reason that I ask this question is that some of the sites they dont allow ssh access into their network. So typically I have them ssh to my server and up unto this point, I "vnc" to the Gnome desktop and open up a terminal in that manner to be able to work. I wanted to avoid accessing the GUI and be able to access the cli directly. Would "-S" option work using SSH? Is that what I need to be using?
# 6  
Old 01-10-2013
Once they ssh to your network creating a tunnel, you can telnet in on the encrypted tunnel end (or X, vnc or whatever -- even ssh). Use localhost so it is not relatively wide open. Access requires access to their tunnel's target server and the id/pw and port for the telnet from there. I am not sure why it would get more complex.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

2. IP Networking

Ssh to remote access point http server

I need to do some remote administration to an access point that is sitting behind a firewall that only has ssh enable from the outside but http/https from the inside. So to be a bit clearer: remote(outside firewall) ssh --> ssh-server(internal) --> access point(http/https) Ultimately... (3 Replies)
Discussion started by: metallica1973
3 Replies

3. Linux

Create VNC Session on remote machine on which ssh access is denied

Hi Folks, I want to create VNC session on the Remote RHEL machine on which ssh access is denied. Is there any way so that I can create VNC session without ssh access. Let me know all possible ways! (1 Reply)
Discussion started by: gydave
1 Replies

4. AIX

TTY Reconnaissance for remote users

I'm trying to create an automated script, which (I feel) needs to be able to map local processes of a certain program with certain remote hosts. The script will know which remote host and local program it will be looking for during the mapping. Essentially the goal is to programmatically pull which... (3 Replies)
Discussion started by: thmnetwork
3 Replies

5. Linux

Access environment variables on remote host using ssh

How can i access environment variables on remote host using ssh example: # Remote server $ echo $MAIL /var/spool/mail/gacf $ # Local server $ ssh gacf@server1 'echo $MAIL' /var/mail/gacf $ Expected to find: $ ssh gacf@server1 'echo $MAIL' /var/spool/mail/gacf $ (3 Replies)
Discussion started by: brendan76
3 Replies

6. Shell Programming and Scripting

Getting rid of "Warning: no access to tty....

So I have been submitting a lot of pbs jobs using the qsub command: qsub -l nodes=1: ppn=1,walltime=4:00:00 run.csh and everything works perfect except that I get the following error at the top of each output file: Warning: no access to tty (Bad file descriptor). Thus no job control in this... (0 Replies)
Discussion started by: pattywac
0 Replies

7. UNIX for Dummies Questions & Answers

tty remote IP

I am fairly new to Unix Terminal outputs and I have a server that is sending print jobs to a PortServer 8 RJ45 situated in a remote location. It is working fine however we need to change the Subnet of that location and I am unable to find where the IP associated with the terminal is located. ... (4 Replies)
Discussion started by: martin_Montreal
4 Replies
Login or Register to Ask a Question