1834931 Members
3010 Online
110071 Solutions
New Discussion

Re: SSH

 
rgoud
Occasional Advisor

SSH

Hi list,
I use SSH from CDE, SSH does not show hostname on the terminal like it does when logged in the servers using SSH on pc's. Anyone knows how to configure SSH to show the hostname on Top of the terminal or is there any other way to configure this in CDE?, please let me know.

Thanks in advance.
5 REPLIES 5
Chris Vail
Honored Contributor

Re: SSH

I'm not really sure exactly what you're asking for. I think the solution to your problem is: ssh $HOST:/usr/dt/bin/dtterm -name `uname -n` -display $WHATEVER &

This uses secure shell to invoke the dtterm program, displaying the hostname at the top of the window as you requested, and displaying the results on the WHATEVER terminal. However, dtterm itself is NOT encryped, so the security of this is questionable.

Chris
rgoud
Occasional Advisor

Re: SSH

Chris,
Thanks, it works. I quickly put this together
ssh $HOST:/usr/dt/bin/dtterm -name `uname -n` -bg "cyan" -fg "black" -sb -geometry 120

It is working except scroll bar and geometry.
Any idea?
Thanks
David_246
Trusted Contributor

Re: SSH

Hi,

The following will give you a very long history :

/usr/dt/bin/dtterm -sl 20000

There is a max to the historysize --> man dtterm.

Regs David
@yourservice
John Dvorchak
Honored Contributor

Re: SSH

maybe try removing the double quotes from the command line around "geometry and color". Also I thought the geometry was expressed as a string like 80x24 or 132x16 etc.
If it has wheels or a skirt, you can't afford it.
Bill Douglass
Esteemed Contributor

Re: SSH

If you're running ssh from a terminal window on your CDE desktop, then you can put the following line in your .profile on the remote host:

/bin/echo \\033]0\;`uname -n`\\007

Which will put the host name in the title bar of your xterm.

Also, if you have "ForwardX11 Yes" in your ssh_config file on the local host and in sshd_config on your remote host, then ssh will automatically tunnel X11 output from the X client to your server. It will set the DISPLAY variable on the remote host, and your X traffic will be encrypted,just like your terminal traffic.