![]() | |
#1
| |||
| |||
|
|
A few months ago I upgraded half a dozen desktops from serial green screens to PC running Accuterm and connecting via SSH. Since there doesn't seem to be "nailed SSH" like there is with telnet, each users linux login runs a script that logs them into a particular d3 port, and |
|
thanks, Bruce Ackman |
#2
| |||
| |||
|
|
A few months ago I upgraded half a dozen desktops from serial green screens to PC running Accuterm and connecting via SSH. Since there doesn't seem to be "nailed SSH" like there is with telnet, each users linux login runs a script that logs them into a particular d3 port, and snip.............. thanks, Bruce Ackman Not so. I used to think I couldn't do a nailed ssh port also, until I was shown how to do it. Now I use it heavily. Art Martz OK. So how do I do it? |
#3
| |||
| |||
|
|
Art wrote: snip Not so. I used to think I couldn't do a nailed ssh port also, until I was shown how to do it. Now I use it heavily. Art Martz OK. So how do I do it? |

#4
| |||
| |||
|
|
bruce ackman wrote: Art wrote: snip Not so. I used to think I couldn't do a nailed ssh port also, until I was shown how to do it. Now I use it heavily. Art Martz OK. So how do I do it? Just like telnet in /etc/xinetd.d but change a few parameters like so for service d316099. server = /usr/sbin/sshd server_args = -i port = 16099 YMMV Patrick, <;=) P.S. No warranty expressed or implied. ![]() |
#5
| |||
| |||
|
|
Art wrote: snip... |
|
Not so. I used to think I couldn't do a nailed ssh port also, until I was shown how to do it. Now I use it heavily. OK. So how do I do it? |
#6
| |||
| |||
|
|
On Sat, 03 Dec 2005 14:16:42 -0500, bruce ackman wrote: Art wrote: snip... Not so. I used to think I couldn't do a nailed ssh port also, until I was shown how to do it. Now I use it heavily. OK. So how do I do it? I have remote linux PCs connecting to a central IBM aix box, running a sshd server. The aix box has nailed telnet ports defined in the inittab file, just like you would for a standard telnet session. On the remote linux box, I put two records, the first for cosmetics for the user: conmsg Now connecting to the Main System, this will take a couple of minutes! Please wait for the connected message................... The second record is the ssh command, as follows: cat conmsg ssh -2 -L 2000:127.0.0.1:99999 aixuser (AT) 99 (DOT) 999.999.99 -i /home/linuxuser/.ssh/ssh_host_dsa_key -f TERM="ansi";export TERM;telnet localhost 2000 (this is all one line) where "99999" is your nailed telnet port on the host machine, and "99.999.999.99" is the static IP address on the host machine. "aixuser" is a valid login on the host machine (required), and "linuxuser" is on the remote linux system. ssh uses key pairs, the private part is in /home/linxuser/.ssh, and the public part gets put on the aix box in its .ssh directory. This opens a ssh connection between the two machines, and then the "-f" option forks the ssh execution, and starts a telnet session. Since the ssh connection is parked on port 2000 on the linux box, the telnet is pointed at port 2000 on localhost. The other end of the encrypted tunnel is port "99999" (or whatever) on the aix box. So in other words, you use a standard telnet command *thru* the ssh connection. Art |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
I understand what you are trying to accomplish but what happens when the user's network connection is dropped? D3 does not release the port. I have tried many ways in order for the port to be "cleaned up" when the connection is dropped. We have to go into D3 and log off port and kill the linux processes. |
|
telnet. Is ssh anymore robust? |
![]() |
| Thread Tools | |
| Display Modes | |
| |