What is -oStrictHostKeyChecking option in SFTP Command?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What is -oStrictHostKeyChecking option in SFTP Command?
# 1  
Old 06-21-2015
What is -oStrictHostKeyChecking option in SFTP Command?

Can anyone explain me the below sftp command

Code:
sftp -oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@ -v oIdentityFile=$sftpIdentity -b $PutSFTPbatch.bat $sftpUrl

I need explanation for the below parameters with all their possible values
Code:
-oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@
-v oIdentityFile=$sftpIdentity

# 2  
Old 06-21-2015
See man ssh_config
Code:
     IdentityFile
	     Specifies a file from which the user's DSA, ECDSA or DSA authentication identity is
	     read. [..]

     StrictHostKeyChecking
	     If this flag is set to ``yes'', ssh(1) will never automatically add host keys to the
	     ~/.ssh/known_hosts file, and refuses to connect to hosts whose host key has changed.[..]

This User Gave Thanks to Scrutinizer For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

SFTP with limit(l) option

Hi, I have sftp installed in some of my corporate servers (test and production). However, I notice that it does not have the limit(l) option for bandwidth limit option. Why is this? Is it because sftp was not installed with other necessary packages? How do I make sftp available with the... (4 Replies)
Discussion started by: anaigini45
4 Replies

2. OS X (Apple)

What's the reason behind having -n option for mv command?

Sorry for a question that may seem dumb but learning UNIX basics I still can not grasp benefits of using mv -n source file target file I can understand the need for cp -n source file target file when you get a copy with contents untouched but the former baffles me. I know that this about... (8 Replies)
Discussion started by: scrutinizerix
8 Replies

3. Shell Programming and Scripting

mkdir -p option in SFTP session

Hi, I am trying to create more than one directory by using -p option in SFTP session. But it created a directory named -p and ended. It didn't throw any error. sxxxxxxx:(abc)/test> sftp abcuser@zxxxxxxx Connecting to zxxxxxxx... Password: sftp> pwd Remote working directory: /test... (3 Replies)
Discussion started by: gthangav
3 Replies

4. Shell Programming and Scripting

Passwordless SFTP - SCP Option?

I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated. Currently we use SFTP and the script asks for the password of the... (20 Replies)
Discussion started by: Stigy
20 Replies

5. Shell Programming and Scripting

sftp -b option

Hi, what does -b option do in sftp batch mode..?:confused: (1 Reply)
Discussion started by: rahulsxn660
1 Replies

6. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

7. Shell Programming and Scripting

-n option with grep command

Hi, what is the meaning of -n option before the grep command ? grep command searches for the specified string in the file tmp_crontab.txt but what does -n mean ? With Regards (1 Reply)
Discussion started by: milink
1 Replies

8. UNIX for Advanced & Expert Users

SFTP - Overwrite [Put -P <file>] option

Hi All Experts, I hope you are all ok! :D My question is simple but I was not able to find an answer in the internet, and that's why I am here! My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
Discussion started by: felipe.vinturin
5 Replies

9. SCO

sftp on unixware 711 doesnt have -b option

I installed openssh on 711 to gain ssh and sftp. When i type sftp (installed in /usr/local/bin) i get the following available options usage: sftp host which isnt what i expect. I expect the full implementation : sftp host sftp host]] sftp host]]... (0 Replies)
Discussion started by: townsenn
0 Replies

10. UNIX for Dummies Questions & Answers

option for ls command

i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi (1 Reply)
Discussion started by: eloquent99
1 Replies
Login or Register to Ask a Question