How to avoid rsync "The authenticity of host" prompt?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to avoid rsync "The authenticity of host" prompt?
# 1  
Old 03-01-2018
Hammer & Screwdriver How to avoid rsync "The authenticity of host" prompt?

Hi,

I wish to bypass the rsync prompt thus making the command non-interactive.

Below is where it asks for prompt:

Code:
rsync --delay-updates -F --compress --archive --rsh=/usr/share/bin/ssh  /web/admin/Transfer/ user1@destserver.com:/tmp/test

Quote:
The authenticity of host 'usfkl31as05.mrshmc.com (10.2.188.118)' can't be established.
ECDSA key fingerprint is c9:f7:e1:f8:cc:b1:f0:03:a7:01:2d:22:c6:1a:52:eb.
Are you sure you want to continue connecting (yes/no)?
I tried the below two solution but they fail to work.

Code:
rsync --delay-updates -F --compress --archive --rsh=/usr/share/centrifydc/bin/ssh -o "StrictHostKeyChecking no" /web/admin/Transfer  user1@destserver.com:/tmp/test

Code:
rsync --delay-updates -F --compress --archive --rsh=/usr/share/centrifydc/bin/ssh  -o CheckHostIP=no  /web/admin/Transfer  user1@destserver.com:/tmp/test

Can you please suggest ?
# 2  
Old 03-01-2018
Perhaps,

Code:
rsync --delay-updates -F --compress --archive -e "/usr/share/centrifydc/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" /web/admin/Transfer  user1@destserver.com:/tmp/test

This User Gave Thanks to Aia For This Post:
# 3  
Old 03-01-2018
Hammer & Screwdriver

Quote:
Originally Posted by Aia
Perhaps,

Code:
rsync --delay-updates -F --compress --archive -e "/usr/share/centrifydc/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" /web/admin/Transfer  user1@destserver.com:/tmp/test

It works! thank you for the useful tip. I was thinking if i could get it to work with --rsh instead of -e.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

How to avoid the "temp files" in my script?

Hi ! :) I noticed that I create often of temporary files to keep character strings or other and I wish to avoid that if possible ? e.g : #!/bin/bash CONFIG_FILE="conf.cfg" TEMP_HOSTNAME="temp_file1.txt" for IP in `egrep -o '({1,3}\.){3}{1,3}' $CONFIG_FILE` do ssh "$IP"... (2 Replies)
Discussion started by: Arnaudh78
2 Replies

3. Shell Programming and Scripting

How to avoid "Too many arguments" error, when passing a long String literal as input to a command?

Hi, I am using awk here. Inside an awk script, I have a variable which contains a very long XML data in string format (500kb). I want to pass this data (as argument) to curl command using system function. But getting Too many arguments error due to length of string data(payloadBlock). I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies

4. Shell Programming and Scripting

How to avoid "override protection 644 (yes/no)?" -ksh 88

Hi All, I'm using Ksh 88 version. I'm trying to remove the files using the below script .The code is working fine but i'm getting override protection 644 (yes/no)? message for every file .. Pelase suggest #!/usr/bin/ksh set -x File_Path="/etc/home/logs" Dest_Path="/etc/home/temp"... (1 Reply)
Discussion started by: smile689
1 Replies

5. UNIX for Dummies Questions & Answers

What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh?

Please can you help me understand the significance of providing arguments under sh -s in > ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies

6. Solaris

How to avoid "cannot execute" issue with a runnable jar file?

I am trying to understand why the runnable jar file runs on one Unix server, but not the other with same environment settings. I copied exact same test jar from here --> http://www.javaworld.com/javaworld/javatips/javatip127/MakeJarRunnable.zip on to both Unix servers. Then changed... (5 Replies)
Discussion started by: kchinnam
5 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Shell Programming and Scripting

Joining 3 AWK scripts to avoid use "temp" files

Hi everyone, Looking for a suggestion to improve the below script in which I´ve been working. The thing is I have 3 separated AWK scripts that I need to apply over the inputfile, and for scripts (2) and (3) I have to use a "temp" file as their inputfile (inputfile_temp and inputfile_temp1... (2 Replies)
Discussion started by: cgkmal
2 Replies

9. Shell Programming and Scripting

read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell

Hallo, i need a Prompting read in my script: read -p "Enter your command: " command But i always get this Error: -p: is not an identifier When I run these in c-shell i get this error /usr/bin/read: read: bad option(s) How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies

10. Shell Programming and Scripting

Avoid "++ requires lvalue" Error in Loop Calculation

Hi All, Please help me to perform sum of values in a loop, I am getting following error: "total=0++432907765772: ++ requires lvalue" where actual statement is as : total=$total+$amt where amt can have +ve or -ve values Thanks Sandeepb (3 Replies)
Discussion started by: sandeepb
3 Replies
Login or Register to Ask a Question