Dear all,
I have installed the latest nx server version to opensuse. I would like to allow my windows client or linux client from home to connect to my linux work computer.
I think I would need some help at the beginniing to confirm that my server is correctly set. Can you help me on what I need to check configure on my service to make sure that I am doing it right?
At the same time I am trying to connect from my windows machine to my linux server, but I fail. I guess it would help me if I can check somehow fast on my linux nxserver that the requests make it to my work computer or not. I thought I could use a tcpdump but I can not filter enough the packets (nx runs on ssh port) to see if a connect request from my windows machine makes it.
Can you please help me sort out what is going wrong?
I would like to thank you for your reply
Regards
Alex
Hi
If you go into YaST firewall and under allowed services on the right in the dropdown have you allowed the NX service. AFAIK it also uses ssh, so is the ssh service enabled and running as well as allowed through the firewall.
Hey. Your avatar is back
I have used tcpdump on my port to see for incoming connections. I had one small mistake on my clients tunnel an thus I could not reach my server. I fixed it! Now I canconnec tto server and see the ssh packets coming in.
I am getting authentication error though. I am trying to remember what I have to do with nx users…
#RSAAuthentication yes
#PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys2
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
it looks enabled.
I guess I might also see what there is indeed inside my
~/.ssh> vi authorized_keys2
Any ideas how I can check that this files content is correct? (It has some line inside…)
in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no
it looks enabled.
I guess I might also see what there is indeed inside my
~/.ssh> vi authorized_keys2
Any ideas how I can check that this files content is correct? (It has
some line inside…)
Hi
On the client if you generate your public key (eg rsa) then on the
server’s ~/.ssh/authorized_keys2 file you would add the rsa key from the
client.
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.39-47-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
I guess that might be the problem that in the past I was using version before 4 and now I am using version 4, so I think files of different versions are used…
How I can clean stuff from my server?
I removed the authorized key completely.
I tried connected and got the message
This server does not support connection over ssh. Switch to NX protocol? (unfortunately I can not make this error message happen again).
I have pressed yes and then I immediately got the following error
Error is 22: Invalid argument
So what I do next?
For me is clear that I can reach from my client my server… It looks like that there is misconfigured on my server. What that can be?
I have missed this post so I copied my ssh public key as you said. Problem persists.
I also used this guide, that explains about my problem but still problem persists
How I can see server log files, so I can understand why connection fails?
I also found these from my server log files…
Error: Can’t bind the socket for proto ‘TCP’.
Error: Error 98 ‘Address already in use’.
Info: Server with pid 29223 terminated on Mon Jun 8 07:25:49 2015.
Info: Server started with pid 29226 on Mon Jun 8 07:25:49 2015.
Info: Listening for connections on any interface on port 5902.
Info: Accepting connections from any host with encryption enabled.
29226 29226 07:25:49 165.440 Socket: WARNING! Can’t bind the IPv6 socket.
29226 29226 07:25:49 165.480 Socket: WARNING! Error is 99 ‘Cannot assign requested address’.
29226 29228 07:25:49 165.655 TcpListener/TcpListener: ERROR! Can’t bind the socket for proto ‘TCP’.
29226 29228 07:25:49 165.679 TcpListener/TcpListener: ERROR! In method ‘startTcp()’ context .
29226 29228 07:25:49 165.690 TcpListener/TcpListener: ERROR! Error is 98 ‘Address already in use’.
Error: Can’t bind the socket for proto ‘TCP’.
Error: Error 98 ‘Address already in use’.
Info: Server with pid 29226 terminated on Mon Jun 8 07:25:49 2015.
Info: Server started with pid 29229 on Mon Jun 8 07:25:49 2015.
Info: Listening for connections on any interface on port 5902.
Info: Accepting connections from any host with encryption enabled.
29229 29229 07:25:49 282.241 Socket: WARNING! Can’t bind the IPv6 socket.
29229 29229 07:25:49 282.279 Socket: WARNING! Error is 99 ‘Cannot assign requested address’.
29229 29231 07:25:49 282.519 TcpListener/TcpListener: ERROR! Can’t bind the socket for proto ‘TCP’.
29229 29231 07:25:49 282.567 TcpListener/TcpListener: ERROR! In method ‘startTcp()’ context .
29229 29231 07:25:49 282.584 TcpListener/TcpListener: ERROR! Error is 98 ‘Address already in use’.
Error: Can’t bind the socket for proto ‘TCP’.
Error: Error 98 ‘Address already in use’.