szcf-weiya / techNotes

My notes about technology.
https://tech.hohoweiya.xyz/
11 stars 7 forks source link

servers #31

Open szcf-weiya opened 3 years ago

szcf-weiya commented 3 years ago

Fan's Lab

szcf-weiya commented 3 years ago

CHPC

forward failed

but failed to access 28888 from T460P. It throws

channel 4: open failed: connect failed: Connection refused

on login01.

Test directly open 8888 on login01, and then visit 28888, OK!

The ports are indeed opened,

login01$ netstat -tunlp | grep 8888
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      13773/ssh           
tcp6       0      0 :::8888                 :::*                    LISTEN      13773/ssh 

add -vvv in the forward command on login01, the message are

debug1: Connection to port 8888 forwarding to localhost port 8888 requested.
debug2: fd 6 setting TCP_NODELAY
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug3: send packet: type 90
debug3: receive packet: type 92
channel 2: open failed: connect failed: Connection refused
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 8888 for localhost port 8888, connect from ::1 port 37834
 to ::1 port 8888, nchannels 3
debug3: channel 2: status: The following connections are open:

also tried -L 8888:127.0.0.1:8888 as suggested in https://serverfault.com/questions/489192/ssh-tunnel-refusing-connections-with-channel-2-open-failed, same error and tried -L 8888:[::1]:8888, it shows, a new error string, "open failed: administratively prohibited"

debug1: Connection to port 8888 forwarding to ::1 port 8888 requested.
debug2: fd 6 setting TCP_NODELAY
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug3: send packet: type 90
debug3: receive packet: type 92
channel 2: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 8888 for ::1 port 8888, connect from ::1 port 38778 to ::1 port 8888, nchannels 3
debug3: channel 2: status: The following connections are open:

Ohhhh, I am stupid! The 8888 port is opened on another machine instead of sandbox.

szcf-weiya commented 2 years ago

myworkflow

szcf-weiya commented 2 years ago

Warning: No xauth data; using fake authentication data for X11 forwarding.

weiya@stapc220:~$ ssh -X rocky
Warning: No xauth data; using fake authentication data for X11 forwarding.

connect localhost port 6000: Connection refused
connect localhost port 6000: Connection refused

but directly ssh -X ROCKY is ok.

szcf-weiya commented 2 years ago

cannot login chpc-cn101

it seems the job is running normally, but

$ ssh chpc-cn101
Permission denied (publickey).

then try to create an interactive job, which throws no name

$ request_cn 01
srun: job 438886 queued and waiting for resources
srun: job 438886 has been allocated resources
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
/usr/bin/id: cannot find name for group ID 2030117
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
/usr/bin/id: cannot find name for user ID 2030117
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
[I have no name!@chpc-cn101 ~]$ df -h
szcf-weiya commented 5 months ago

mccleary

start R from the terminal instead of rstudio server

need to manually add the path

> .libPaths("/gpfs/gibbs/project/zhao/lw764/R/4.3")