Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] condor_ssh_to_job
- Date: Fri, 6 Aug 2010 07:13:34 +0200
- From: Peter Ellevseth <Peter.Ellevseth@xxxxxxxxxx>
- Subject: Re: [Condor-users] condor_ssh_to_job
Fantastic, that seemed to work.
Thank you
Peter
-----Opprinnelig melding-----
Fra: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] På vegne av Dan Bradley
Sendt: 5. august 2010 19:53
Til: Condor-Users Mail List
Emne: Re: [Condor-users] condor_ssh_to_job
Peter,
The problem appears to be that your shell is csh. (Thanks for the
strace output, by the way.)
Could you please let me know if the following command succeeds?
env SHELL=/bin/sh condor_ssh_to_job <jobid>
Explanation: condor_ssh_to_job relies on the OpenSSH ProxyCommand
option. Some versions of ssh invoke the proxy command using the shell
specified in the SHELL environment variable. Unfortunately, from the
strace output you sent, it appears that csh closes all open file
descriptors other than the standard i/o streams, so the socket that
condor_ssh_to_job passes to the proxy command is closed prematurely.
Here's what appeared in your strace output:
2962 execve("/bin/csh", ["/bin/csh", "-c", "exec \"condor_ssh_to_job\"
\"-debug"...], [/* 66 vars */] <unfinished ...>
followed eventually by this:
2962 close(3) = 0
File descriptor 3 is the socket connected to sshd on the execute node.
--Dan
Dan Bradley wrote:
> Peter,
>
> Unfortunately, I haven't yet seen anything in the debug output that
> explains what is going wrong.
>
> Perhaps it would help to strace condor_ssh_to_job. You could send me
> the output of that via condor-admin@xxxxxxxxxxxx
>
> strace -f -o ssh_to_job_strace.txt condor_ssh_to_job -debug <jobid>
>
> --Dan
>
> Peter Ellevseth wrote:
>> Hi
>> I 'LogLevel DEBUG3' to the config-file and now the log.sshd files
>> looks like this
>>
>> Disabling protocol version 1. Could not load host key
>> debug1: inetd sockets after dupping: 3, 4
>> Connection from <IP-address of submit machine> port 51587
>> Did not receive identification string from <IP-address of submit
>> machine>
>>
>> The two lines in the middle are new.
>>
>> Peter
>>
>> -----Original Message-----
>> From: condor-users-bounces@xxxxxxxxxxx
>> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Dan Bradley
>> Sent: 23. juli 2010 16:36
>> To: Condor-Users Mail List
>> Subject: Re: [Condor-users] condor_ssh_to_job
>>
>> Peter,
>>
>> I see the same sort of debug output from my working condor_ssh_to_job
>> installation, so I don't think any of the debug lines from your ssh
>> client explain whatever is going wrong.
>>
>> Any luck increasing the debug level on the server side?
>>
>> --Dan
>>
>> Peter Ellevseth wrote:
>>
>>> I tried doing Condor_ssh_to_job -ssh 'ssh -vvv' <job.id>
>>>
>>> And got the following result.
>>> I have done some googling on the line
>>> debug3: Not a RSA1 key file
>>> /tmp/pel.condor_ssh_to_job_a7dd8e00/ssh_key.
>>>
>>> But without luck. Any ideas
>>>
>>> OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008
>>> debug1: Reading configuration data /etc/ssh/ssh_config
>>> debug1: Applying options for *
>>> debug2: ssh_connect: needpriv 0
>>> debug1: Executing proxy command: exec "condor_ssh_to_job" "-proxy" "3"
>>> debug1: permanently_drop_suid: 513
>>> debug3: Not a RSA1 key file
>>> /tmp/pel.condor_ssh_to_job_a7dd8e00/ssh_key.
>>> debug2: key_type_from_name: unknown key type '-----BEGIN'
>>> debug3: key_read: missing keytype
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug3: key_read: missing whitespace
>>> debug2: key_type_from_name: unknown key type '-----END'
>>> debug3: key_read: missing keytype
>>> debug1: identity file /tmp/pel.condor_ssh_to_job_a7dd8e00/ssh_key
>>> type -1
>>> ssh proxy communication failure: Failed to set socket to
>>> non-blocking mode.
>>> ssh_exchange_identification: Connection closed by remote host
>>>
>>> Thanks, Peter
>>>
>>> -----Original Message-----
>>> From: condor-users-bounces@xxxxxxxxxxx
>>> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Dan Bradley
>>> Sent: 13. juli 2010 16:47
>>> To: Condor-Users Mail List
>>> Subject: Re: [Condor-users] condor_ssh_to_job
>>>
>>> Peter,
>>>
>>> The "Disabling protocol" line is expected, but the other line is not.
>>>
>>> You could try increasing verbosity. On the ssh client side, you can
>>> get verbose debugging like this:
>>>
>>> condor_ssh_to_job -ssh 'ssh -vvv' <jobid>
>>>
>>> On the server side, you could add the following line to condor's
>>> lib/condor_ssh_to_job_sshd_config_template:
>>>
>>> LogLevel DEBUG3
>>>
>>> --Dan
>>>
>>> Peter Ellevseth wrote:
>>>
>>>> Hi
>>>>
>>>> The sshd.log has only two lines
>>>>
>>>> Disabling protocol version 1. Could not load host key
>>>> Did not receive identification string from <IP-address of submit
>>>> machine>
>>>>
>>>> Peter
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: condor-users-bounces@xxxxxxxxxxx
>>>> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Dan Bradley
>>>> Sent: 12. juli 2010 16:56
>>>> To: Condor-Users Mail List
>>>> Subject: Re: [Condor-users] condor_ssh_to_job
>>>>
>>>> Peter,
>>>>
>>>> It may help to see why sshd says it is closing the connection. In
>>>> the job's scratch execute directory on the execute machine, you
>>>> will find a sub-directory named .condor_ssh_to_job_1. The sshd
>>>> logs are inside that directory in a file named sshd.log.
>>>>
>>>> --Dan
>>>>
>>>> Peter Ellevseth wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I am having problems using condor_ssh_to_job
>>>>>
>>>>>
>>>>>
>>>>> I get the following error:
>>>>>
>>>>>
>>>>>
>>>>> ssh proxy communication failure: Failed to set socket to
>>>>> non-blocking mode.
>>>>>
>>>>> ssh_exchange_identification: Connection closed by remote host
>>>>>
>>>>>
>>>>>
>>>>> Has anybody any experience using this function?
>>>>>
>>>>>
>>>>>
>>>>> Peter
>>>>>
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Condor-users mailing list
>>>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>>>> with a
>>>> subject: Unsubscribe
>>>> You can also unsubscribe by visiting
>>>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>>>
>>>> The archives can be found at:
>>>> https://lists.cs.wisc.edu/archive/condor-users/
>>>>
>>>>
>>>> _______________________________________________
>>>> Condor-users mailing list
>>>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>>>> with a
>>>> subject: Unsubscribe
>>>> You can also unsubscribe by visiting
>>>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>>>
>>>> The archives can be found at:
>>>> https://lists.cs.wisc.edu/archive/condor-users/
>>>>
>>> _______________________________________________
>>> Condor-users mailing list
>>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>>> with a
>>> subject: Unsubscribe
>>> You can also unsubscribe by visiting
>>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>>
>>> The archives can be found at:
>>> https://lists.cs.wisc.edu/archive/condor-users/
>>>
>>>
>>> _______________________________________________
>>> Condor-users mailing list
>>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>>> with a
>>> subject: Unsubscribe
>>> You can also unsubscribe by visiting
>>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>>
>>> The archives can be found at:
>>> https://lists.cs.wisc.edu/archive/condor-users/
>>>
>> _______________________________________________
>> Condor-users mailing list
>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>> with a
>> subject: Unsubscribe
>> You can also unsubscribe by visiting
>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>
>> The archives can be found at:
>> https://lists.cs.wisc.edu/archive/condor-users/
>>
>>
>> _______________________________________________
>> Condor-users mailing list
>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>> with a
>> subject: Unsubscribe
>> You can also unsubscribe by visiting
>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>
>> The archives can be found at:
>> https://lists.cs.wisc.edu/archive/condor-users/
>>
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/