[torqueusers] qstat via ssh port forwarding

rajive rajive at ieee.org
Thu Oct 25 22:18:09 MDT 2007


pbs_server expects the connections from pbs_iff to come from privileged port
(<1023). While port forwarding the sshd on your login box opens up an
unprivileged port. 

Kevin wrote on 10/25/07 at 15:09:50 -0400:
>On 10/25/07, Rajiv Chittajallu <rajive at ieee.org> wrote:
>> Its not going to to work cause pbs_iff on  _localhost_ should talk to the
>> torque too.
>
>On which port does pbs_iff talk to the pbs_server?
>
>> Kevin wrote on 10/25/07 at 13:51:18 -0400:
>> >I'm trying to run qstat on my localhost to query a pbs_server on a
>> >remote cluster. I have ssh access to the 'login' server on the remote
>> >cluster. The pbs_server is running on separate machine (torque) at the
>> >remote site. I can run 'qstat @torque' from the remote login server.
>> >My question is how do I setup the port forwarding correctly to get
>> >qstat to run on my local machine. I tried the following but it doesn't
>> >work even though tcpdump show the packets reaching the pbs_server
>> >machine (torque). Maybe I'm using the wrong port or need to forward
>> >some more ports?
>> >
>> >For example:
>> >
>> >[kevin at localhost cmds]$ ssh -L 15001:torque:15001 -N login &
>> >[1] 9133
>> >[kevin at localhost cmds]$ ./qstat @localhost
>> >No Permission.
>> >qstat: cannot connect to server localhost (errno=15007)
>> >
>> >[root at torque ~]# tcpdump tcp port 15001
>> >tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
>> >listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
>> >13:43:30.475376 IP login.54769 > torque.15001: S
>> >2101652975:2101652975(0) win 5840 <mss 1460,sackOK,timestamp
>> >1525634279 0,nop,wscale 5>
>> >13:43:30.475396 IP torque.15001 > login.54769: S
>> >2061961280:2061961280(0) ack 2101652976 win 5792 <mss
>> >1460,sackOK,timestamp 71517784 1525634279,nop,wscale 2>
>> >13:43:30.475486 IP login.54769 > torque.15001: . ack 1 win 183
>> ><nop,nop,timestamp 1525634279 71517784>
>> >13:43:30.519458 IP login.54769 > torque.15001: F 1:1(0) ack 1 win 183
>> ><nop,nop,timestamp 1525634323 71517784>
>> >13:43:30.519494 IP torque.15001 > login.54769: F 1:1(0) ack 2 win 1448
>> ><nop,nop,timestamp 71517828 1525634323>
>> >13:43:30.519609 IP login.54769 > torque.15001: . ack 2 win 183
>> ><nop,nop,timestamp 1525634323 71517828>
>> >_______________________________________________
>> >torqueusers mailing list
>> >torqueusers at supercluster.org
>> >http://www.supercluster.org/mailman/listinfo/torqueusers
>> >
>>
>


More information about the torqueusers mailing list