Dear all,

This is a very good idea for development: with many of us port-forwarding to 
access resources from home, the capacity to specify a non-standard port for ssh 
connections in i2 can in principle allow submission from a home laptop to a 
work-based server…very efficient !

Please keep me in the loop if this fix has worked, and i may end up using it 
myself.

With best wishes,

Martin

On 9 Jun 2020, at 09:17, Stuart McNicholas 
<[email protected]<mailto:[email protected]>>
 wrote:

⚠ External sender. Take care when opening links or attachments. Do not provide 
your login details.
Dear Michael,
   I think that the port number is hardwired in CCP4i2 on line 439 of 
$CCP4/share/ccp4i2/core/CCP4JobServer.py

        transport = paramiko.Transport((sP.machine, 22))

also there are various calls to the "paramiko" library which handles ssh, which 
do not pass a port number and so default to 22.

This is all bad.

I have attached a replacement for this file. Could you try making a backup of 
the above file and copying the attached file in its place.
I have put a constant for the port number in the line

PARAMIKO_PORT=22

near the top of the file. Then change this port number for what is suitable for 
you.

If this works, then I will make the port number an option in the program. If 
not, then I will try something else.


Best wishes,
Stuart McNicholas

On Mon, 8 Jun 2020 at 17:40, Michael Weyand 
<[email protected]<mailto:[email protected]>> wrote:
Dear CCP4I2 experts,

I'm trying to submit remote jobs via SSH within CCP4i2. Unfortunately,
we use a non standard SSH port.
So far, I'm not able to add any option within the CCP4I2 interface. For
job submission, I need something to do like

'ssh -p XXXXX -Y ..... ccp4i-specific-command ...'.

Is there any chance to enter this '-p' SSH option within CCP4i2? I tried
already to define a "ssh command" via "Preferences".
But so far without any success.

I'm also wondering why there is a sshkey file option. If an user already
uses a ssh-key for a client/server connection, why is necessary to
re-input the key file again?
Any ssh between client and server should work from scratch ...

Any hints are highly appreciated,
Michael

########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

This message was issued to members of 
www.jiscmail.ac.uk/CCP4BB<http://www.jiscmail.ac.uk/CCP4BB>, a mailing list 
hosted by www.jiscmail.ac.uk<http://www.jiscmail.ac.uk/>, terms & conditions 
are available at https://www.jiscmail.ac.uk/policyandsecurity/

________________________________

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

<CCP4JobServer.py>


########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

This message was issued to members of www.jiscmail.ac.uk/CCP4BB, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to