running ssh problem
Hi folks,
Ubuntu 7.04 server amd64 router IP - 192.168.0.10 Ubuntu 7.04 desktop router IP - 192.168.0.11 Server can ssh desktop but desktop can't ssh server. On desktop $ ssh -Y satimis@192.168.0.10 rox password: Code:
.... Any advice? TIA satimis |
First check that basic ssh works. Does
Code:
ssh -Y satimis@192.168.0.10 /bin/bash |
Quote:
On desktop $ ssh -Y satimis@192.168.0.10 /bin/bash satimis@192.168.0.10's password: It just hangs here. Ah would it be the problem of running xvt on server instead of xterm? On server: $ apt-cache policy xvt Code:
xvt: Code:
xterm: $ sudo apt-get remove xvt then $ sudo apt-get install xterm TIA B.R. satimis |
Problem still remains
Hi folks,
Performed following test:- On server $ sudo apt-get remove xvt $ sudo apt-get install xterm both went through w/o problem. On desktop:- $ ssh -Y satimis@192.168.0.10 rox Code:
satimis@192.168.0.10's password: Code:
satimis@192.168.0.10's password: $ ssh -X satimis@192.168.0.10 rox Code:
satimis@192.168.0.10's password: Problem is NOT solved B.R. satimis |
What do sshd logs on server contain? What does just 'ssh satimis@192.168.0.10' do?
|
Quote:
$ ssh satimis@192.168.0.10 satimis@192.168.0.10's password: Code:
Linux ubuntu 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 $ cat /var/log/auth.log | grep sshd | less Code:
..... |
Looks like 'ssh satimis@192.168.0.10' gives you a shell where you can actually type.. OK, does 'ssh -X satimis@192.168.0.10' do the same? (Try waiting 65 seconds after entering password, there are different timeouts to expire) Is your $HOME writable by you and clear of unwritable hidden files?
|
Quote:
On desktop $ ssh satimis@192.168.0.1 and $ ssh -X satimis@192.168.0.1 both did the same connecting the remote server $ ls displayed the files and directories on the server. However ran; $ leafpad and $ rox displatying Code:
(leafpad:5800): Gtk-WARNING **: Locale not supported by C library. Quote:
On server $ ls -l showing all files are owned by "satimis:satimis" and writable by their owner "-rw-r--r--" B.R. satimis |
What your $LC_ALL and $LANG on server contain? Anyway, this should be ignorable - it is all about impossibility to meet your supposed country-specific tastes in data representation. It should start anyway. Does rox start when it is just run on server? About writable $HOME - I meant both on desktop and server, but probably it isn't the issue. Is leafpad a window manager, by the way? I do not know, but there are some classes of X programs that need to be the only program of the kind on the $DISPLAY . So it may be the cause.. Try running Xnest with xterm in it, and experiment there, so you will not have conflicts.
|
Quote:
Quote:
Quote:
Quote:
Previously both of them worked without problem on this server which has been crashed before when I tried reinstalling "locale". Now this server is a fresh installation with same packages. Before crash "Ubuntu 7.04 desktop" can connect the server with "scp" and "ssh". Nothing has been touched on the desktop PC. Quote:
B.R. satimis |
Check them just in console..
Code:
echo $LC_ALL ; echo $LANG Code:
export LC_ALL=C; export LANG=C Code:
strace -f -o leafpad.strace leafpad EDIT: and try running Code:
xhost + 127.0.0.1 |
Quote:
$ echo $LC_ALL ; echo $LANG Code:
$ export LC_ALL=C ; export LANG=C Both w/o printout. $ strace -f -o leafpad.strace leafpad leadpad started but w/o any printout on console. On desktop $ xhost + 127.0.0.1 Code:
127.0.0.1 being added to access control list |
So does leafpad start after all this (if you repeat attempt after xhost on desktop)? If not, try 'strace' way again, wait a minute, terminate it and post leafpad.strace.
|
Quote:
Performed following steps:- On server; $ echo $LC_ALL ; echo $LANG Code:
$ export LC_ALL=C ; export LANG=C No complaint. $ strace -f -o leafpad.strace leafpad started leafpad locally. On desktop; $ xhost + 127.0.0.1 Code:
127.0.0.1 being added to access control list Code:
No complaint. $ ssh -Y satimis@102.168.0.10 leafpad Code:
satimis@192.168.0.10's password Then popup; leafpad: cannot open display. Remark: Rox, the file manager, is running on both server and desktop. I found following mistake on server; $ locale Code:
locale: Cannot set LC_CTYPE to default locale: No such file or directory Edit: Performed following steps to fix the problem of above warning on the 3 lines mentioned; $ sudo apt-get install language-pack-en-base Code:
Reading package lists... Done Code:
LANG=C $ sudo dpkg-reconfigure locales ??? Tks ) Rebooted server. $ locale Code:
LANG=en_HK.UTF-8 $ echo $LC_ALL ; echo $LANG Code:
No complaint. $ strace -f -o leafpad.strace leafpad started leadpad On desktop; $ xhost + 127.0.0.1 Code:
Code:
No complaint. $ ssh -Y satimis@192.168.0.10 leafpad satimis@192.168.0.10's password It just hung here sometimes and then; leafpad: cannot open display. satimis |
I mean
Code:
ssh -X satimis@192.168.0.10 |
All times are GMT -5. The time now is 03:15 AM. |