Mailing List Archives
	Authenticated access
	
	
     | 
    
	 
	 
     | 
    
	
	 
     | 
  
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] ssh/scp returning exit code 255 in Bash jobs
- Date: Wed, 17 Oct 2018 09:02:27 +0200 (CEST)
 
- From: "Beyer, Christoph" <christoph.beyer@xxxxxxx>
 
- Subject: Re: [HTCondor-users] ssh/scp returning exit code 255 in Bash jobs
 
Hi,
<255> is the most generela return code you can get from SSH and means 'something went wrong' ;) 
You might want tor try something like: 
scp -vvv hostxy:/path/to/file/my.file . >&ssh_debug.txt
The debug messages should enlighten your problem ... 
Best
Christoph
-- 
Christoph Beyer
DESY Hamburg
IT-Department
Notkestr. 85
Building 02b, Room 009
22607 Hamburg
phone:+49-(0)40-8998-2317
mail: christoph.beyer@xxxxxxx
----- UrsprÃngliche Mail -----
Von: "Todd Tannenbaum" <tannenba@xxxxxxxxxxx>
An: "htcondor-users" <htcondor-users@xxxxxxxxxxx>, "Koschmieder, Lukas" <Lukas.Koschmieder@xxxxxxxxxxxxxxxxxxx>
Gesendet: Dienstag, 16. Oktober 2018 22:49:16
Betreff: Re: [HTCondor-users] ssh/scp returning exit code 255 in Bash jobs
On 10/16/2018 9:51 AM, Koschmieder, Lukas wrote:
> Hi,
> 
> 
> When I try to run ssh/scp in a Condor Bash job, the command always fails 
> with exit code 255. Are you familiar with this behavior? How do I enable 
> ssh/scp in my Condor jobs?
> 
> 
> Cheers,
> 
> Lukas
> 
Couple quick thoughts:
- Do really want your job to deal with scripting to use scp and passing 
around credentials? I think usually it is better/easier/safer to use 
HTCondor's file transfer mechanism (which is scheduled) to move files 
from your submit machine to the execute machine ... see 
http://tinyurl.com/ya69km5j
- If you need to use scp etc, the most common reason I've encountered 
for an exit status of 255 in scripts that run outside of my home 
environment is because I am contacting a host not in my 
$HOME/.ssh/known_hosts file (almost certainly not the case if you are 
using HTCondor without a shared file system or across administrative 
domains).  To remedy, consider passing command-line switches to scp/ssh 
like so:
   scp -o UserKnownHostsFile=./my_temporary_known_host ssh_host ...
Hope the above helps
Todd
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/