07-05-2007
Quote:
Originally Posted by
rinku11
Thanks!
But usually, SFTP also works even if you do not exchange the public keys. The only difference is that, if the keys are shared, it will not prompt for the password. To handle this issue, I am ready to pass the username and password.
But will the same code work in the same case? As sftp does not recognizes the "-i" option. It even does not recognize the QUOTE option.
Please share with me, if you have a script already in place?
Thanking you again....
Ah yes, I forgot about that part. I've brought that issue up to management also, and they are looking into it. For now, I've been given an exception to the SFTP debacle on the mainframe. And you're right, the -i option, -n, and a few others are also unavailable in SFTP. Makes me wonder why they'd secure FTP and remove functionality?
10 More Discussions You Might Find Interesting
1. Solaris
I've been working on this for a while and decided to see if anyone else here had this same issue. I'm trying to ftp a file from a mainframe (OS390) to Solaris. Obviously this is easily done, however the file is somehow being stripped of data in comparison to the way we transfer the file via a... (5 Replies)
Discussion started by: douknownam
5 Replies
2. UNIX for Advanced & Expert Users
We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for
unix machine.
Has anyone used chmod command in association with site command in ftp? How it should be used?
Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies
3. Linux
I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location.
Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies
4. UNIX for Advanced & Expert Users
Hi,
Is it possible to do hard link between the mount point of file some structure to the sftp account of some other server ? If possible then what could be the behavior of link properties? Is it could be the same as we found in our environment (unix/linux).
Even if we do such link , then it... (1 Reply)
Discussion started by: posix
1 Replies
5. Emergency UNIX and Linux Support
Dear all,
I was given the ID_DSA.pub by an MVS user, which I placed in the appropriate user's authorized_keys file. When the user tris to SFTP from their side to the AIX box, the following error is got:
error: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY ... (6 Replies)
Discussion started by: ggayathri
6 Replies
6. AIX
Hi,
I want to try to connect to a DB2 (MVS) database from an AIX, through my c++ custom program. Is anybody who knows how can I do this? Which libraries should I use? Should I have a DB2 connect installed on my AIX?
Thank you in advance. (3 Replies)
Discussion started by: develo
3 Replies
7. Shell Programming and Scripting
Hi Unix team,
Is there any alternative option and command which one can use in ftp for sftp usage.
open, system command --> alternative for sftp usage
-n option --> alternative for sftp usage
sftp supports only binary transmission.
how one can achieve ascii mode file... (8 Replies)
Discussion started by: mayleeshwaran
8 Replies
8. Shell Programming and Scripting
Hi,
I am trying to send a txt file via FTP to the Mainframe or MVS. the file gets sent to the MVS but the user name gets appended to the file name.
For eg if i am sending test.txt, in the mainframe it lands as username.test.txt.
I tried putting the filename inside single quotes but I get an... (3 Replies)
Discussion started by: naveensraj
3 Replies
9. UNIX for Advanced & Expert Users
Dear all,
I have been given the opportunity at the last minute to help on a project. There is a need to move some very large files from an MVS machine to an AIX one. The servers are remote with (I think) a 2Meg network pipe between them. The people on the project have been moving small... (1 Reply)
Discussion started by: rbatte1
1 Replies
10. Shell Programming and Scripting
Hi,
I have one job that runs daily and creates daily files. At the end I compare the today's file with previous day's file. And if today's file size is greater or equal to previous day's file, then it is ok, else I need to through error.
I have following piece of code:
typeset -i... (2 Replies)
Discussion started by: ppatra
2 Replies
LEARN ABOUT CENTOS
libssh2_sftp_rmdir_ex
libssh2_sftp_rmdir_ex(3) libssh2 manual libssh2_sftp_rmdir_ex(3)
NAME
libssh2_sftp_rmdir_ex - remove an SFTP directory
SYNOPSIS
#include <libssh2.h>
#include <libssh2_sftp.h>
int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path,
unsigned int path_len);
DESCRIPTION
Remove a directory from the remote file system.
sftp - SFTP instance as returned by libssh2_sftp_init(3)
sourcefile - Full path of the existing directory to remove.
sourcefile_len - Length of the full path of the existing directory to remove.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
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.
SEE ALSO
libssh2_sftp_init(3)
libssh2 0.15 1 Jun 2007 libssh2_sftp_rmdir_ex(3)