10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to transfer all details of sftp connection into a log file and spawn sftp $PCMSu@$FTP_LOC >> log_file is not working for me. Please suggest how to send the data to a log file that has all information if sftp connection is successful or not?
Script that I am using:
#!/usr/bin/expect... (7 Replies)
Discussion started by: Geeta Yadav
7 Replies
2. Shell Programming and Scripting
I had the below sftp script working perfectly but the problem is I am not able to send the echo statements .
#!/bin/sh
echo "Starting to sftp..."
sftp admin@myip << END_SCRIPT
cd /remotepath/
lcd /localpath/
mget myfiles*.csv
bye
END_SCRIPT
echo "Sftp successfully."
echo
echo... (11 Replies)
Discussion started by: scriptscript
11 Replies
3. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
4. Fedora
Hi
I have managed on numerous machine to set up sftp not too require a password - i finally have one that does not work and Im at a loss - looked around checked permissions etc
The 2 machines Ill call then source and target I need to sftp from source to target (previously the target has... (3 Replies)
Discussion started by: wwwdaryl
3 Replies
5. UNIX for Dummies Questions & Answers
hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies
6. Shell Programming and Scripting
I am trying to send a file from my 9000 box to a vendor using sftp and I am getting this error: Couldn't close file: Failure
Here are the results of my automated script:
Connected to yyy.com.
sftp> pwd
Remote working directory: /
sftp> cd xxxxx/yyyyy_TEST/TEST
sftp> put FILE FILETEST... (1 Reply)
Discussion started by: nickg
1 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
Hello,
Sometimes when i execute my shell that makes sftp it gives me this error:
Couldn't close file: Failure.
What does it mean?, how can i make sure it will do ok?.
Bye (2 Replies)
Discussion started by: rubber08
2 Replies
9. Shell Programming and Scripting
Hi,
I am having unix server SUNW,Sun-Fire-V245.
remote windows server details: Microsoft Windows
In my script i am sftp'ing files to the windows server through sftp command.
But the problem i am facing is, some files are successfully sftp'd to windows server and for some files sftp is... (0 Replies)
Discussion started by: syamkp
0 Replies
10. UNIX for Advanced & Expert Users
Hello,
I just want to ask regarding the meaning of the error that we got using sftp:
Connecting to <TARGET SERVER IP>...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
Discussion started by: james_falco
3 Replies
libssh2_sftp_init(3) libssh2 manual libssh2_sftp_init(3)
NAME
libssh2_sftp_init - open SFTP channel for the given SSH session.
SYNOPSIS
#include <libssh2.h> #include <libssh2_sftp.h>
LIBSSH2_SFTP * libssh2_sftp_init(LIBSSH2_SESSION *session);
DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3)
Open a channel and initialize the SFTP subsystem. Although the SFTP subsystem operates over the same type of channel as those exported by
the Channel API, the protocol itself implements its own unique binary packet protocol which must be managed with the libssh2_sftp_*() fam-
ily of functions. When an SFTP session is complete, it must be destroyed using the libssh2_sftp_shutdown(3) function.
RETURN VALUE
A pointer to the newly allocated SFTP instance or NULL on failure.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_SOCKET_TIMEOUT -
LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be
returned by the server.
LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block.
SEE ALSO
libssh2_sftp_shutdown(3) libssh2_sftp_open_ex(3)
libssh2 0.15 1 Jun 2007 libssh2_sftp_init(3)