search for: remote_path

Displaying 20 results from an estimated 20 matches for "remote_path".

2003 Oct 01
1
3.7.1p2 sftp recurse patch
...path Remove remote directory\n"); printf("rm path Delete remote file\n"); printf("symlink oldpath newpath Symlink remote file\n"); @@ -430,6 +436,106 @@ } static int +do_recursive_download(struct sftp_conn *conn, char *remote_path, + char *local_path, int pflag) +{ + char *remote_tmp, *local_tmp; + int err, n; + SFTP_DIRENT **d; + extern int errno; + + if (recursion && remote_is_dir(conn, remote_path)) { + if (!is_dir(local_path)) { + /* Create local directory */ + err = mkdir(local_path, 0777); + if (e...
2007 Dec 12
0
Revisiting sftp tab completion patch
...03:30:02 -0000 1.97 +++ sftp.c 12 Dec 2007 03:19:32 -0000 @@ -71,6 +71,12 @@ int remote_glob(struct sftp_conn *, const char *, int, int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ +/* sftp connection structure */ +struct sftp_conn *conn; + +/* sftp remote path */ +char *remote_path; + /* Separators for interactive commands */ #define WHITESPACE " \t\r\n" @@ -115,42 +121,49 @@ struct CMD { const char *c; const int n; + const int t; }; +/* Type of completion */ +#define NOARGS 0 +#define REMOTE 1 +#define LOCAL 2 + + static const struct CMD cmds...
2003 Oct 30
2
sftp client reget reput
...r openssh-3.7.1p2/sftp-client.c openssh-3.7.1p2_sftp/sftp-client.c --- openssh-3.7.1p2/sftp-client.c 2003-07-02 22:46:57.000000000 -0500 +++ openssh-3.7.1p2_sftp/sftp-client.c 2003-10-16 10:09:51.000000000 -0500 @@ -735,8 +735,13 @@ } int +#ifdef REGET +do_download(struct sftp_conn *conn, char *remote_path, char *local_path, + int pflag, int rflag) +#else do_download(struct sftp_conn *conn, char *remote_path, char *local_path, int pflag) +#endif { Attrib junk, *a; Buffer msg; @@ -798,8 +803,17 @@ return(-1); } - local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, - mod...
2004 Mar 03
1
BUG: SFTP (openssh-3.8p1) upload doubles "Uploading..." comment
...c/usr.bin/ssh/sftp-client.c,v retrieving revision 1.46 diff -u -r1.46 sftp-client.c --- sftp-client.c 17 Feb 2004 05:39:51 -0000 1.46 +++ sftp-client.c 3 Mar 2004 03:05:36 -0000 @@ -805,13 +805,8 @@ max_req = 1; progress_counter = 0; - if (showprogress) { - if (size) - start_progress_meter(remote_path, size, - &progress_counter); - else - printf("Fetching %s to %s\n", remote_path, local_path); - } + if (showprogress && size != 0) + start_progress_meter(remote_path, size, &progress_counter); while (num_req > 0 || max_req > 0) { char *data; @@ -1032...
2002 Feb 06
2
SFTP Status Bar..
...d Feb 6 13:02:34 2002 @@ -49,6 +49,11 @@ /* Message ID */ static u_int msg_id = 1; +/* Progress Meter items */ +off_t statbytes = 0; +off_t totalbytes = 0; +char *curfile = NULL; + static void send_msg(int fd, Buffer *m) { @@ -671,7 +676,7 @@ int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, - int pflag) + int pflag, void (*progressbar)(int)) { int local_fd; u_int expected_id, handle_len, mode, type, id; @@ -724,6 +729,11 @@ return(-1); } + totalbytes = a->size; + curfile = remote_path; + if (progressbar) + (progressbar)(0); + /* Read from re...
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...id? */ ! if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) mode = S_IWRITE | (a->perm & 0777); ! else mode = 0666; ! if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) && (a->perm & S_IFDIR)) { error("Cannot download a directory: %s", remote_path); --- 813,826 ---- return(-1); /* XXX: should we preserve set[ug]id? */ ! if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) { mode = S_IWRITE | (a->perm & 0777); ! savemode = (a->perm & 0777); ! } ! else { mode = 0666; ! savemode = 0666; ! } if ((a-&gt...
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any advice on how to improve performance, I'd like to hear it. Test simply involved transferring a single 143MB MP3 file using defaults for all the program configs. The opensshd 3.0.2p1 server is used in all tests. Software: openssh suite 3.0.2p1 psftp (putty sftp client) latest dev snapshot pscp (putty scp client) latest
2001 Sep 10
0
[PATCH] quick hack for 'resume' support in sftp
...define COPY_SIZE 8192 + /* resume or not (from sftp.c) */ + extern int enable_resume; + /* Message ID */ static u_int msg_id = 1; *************** *** 682,687 **** --- 685,691 ---- Buffer msg; Attrib junk, *a; int status; + struct stat localfile; a = do_stat(fd_in, fd_out, remote_path, 0); if (a == NULL) *************** *** 698,705 **** error("Cannot download a directory: %s", remote_path); return(-1); } ! ! local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, mode); if (local_fd == -1) { error("Couldn't open local file \"%s\&q...
2002 Feb 02
0
Version two of progressbar for scp/sftp
....c 2002/02/02 21:47:41 @@ -49,6 +49,11 @@ /* Message ID */ static u_int msg_id = 1; +/* Progress Meter items */ +off_t statbytes = 0; +off_t totalbytes = 0; +char *curfile = NULL; + static void send_msg(int fd, Buffer *m) { @@ -670,7 +675,7 @@ int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, - int pflag) + int pflag, void (*progressbar)(int)) { int local_fd; u_int expected_id, handle_len, mode, type, id; @@ -723,6 +728,11 @@ return(-1); } + totalbytes = a->size; + curfile = remote_path; + if (progressbar) + (progressbar)(0); + /* Read from re...
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...dr and - docroot.elements['source'].elements['device'].attributes['path'] == @target) - end -end - -class NFSLibvirtPool < LibvirtPool - def initialize(ip_addr, export_path) - super('netfs') - - @type = 'netfs' - @host = ip_addr - @remote_path = export_path - @name = String.random_alphanumeric - - @xml.root.elements["source"].add_element("host", {"name" => @host}) - @xml.root.elements["source"].add_element("dir", {"path" => @remote_path}) - @xml.root.elements[&...
2006 Nov 12
2
Client options to server
Hi, I'm using openssh 4.4 I'm trying to develop a new SSH appliance, but I need some parameters from client. In client I setup new record in the structure options that I think are passed to server. Where is the structure of the server where stored client options? Thanks -- Vincenzo Sciarra
2013 Sep 03
2
rsync -append "chunk" size
I'm transferring 1.1 Mb files over very poor GSM EDGE connection. My rsync command is: rsync --partial --remove-source-files --timeout=120 --append --progress --rsh=ssh -z LOCAL_FILE root at SERVER:REMOTE_PATH File on remote server "grows" in size in steps of 262144 bytes. That is a lot, because system needs to transfer at least 262144 (before compression) every time connection is established. When I use scp --C chunk size is about 32Kb. Is there a way to change chunk size for rsync? I use...
2002 Jan 03
3
[PATCH] Improving sftp client performance
...mode, type, id; + u_int handle_len, mode, type, id; u_int64_t offset; char *handle; Buffer msg; Attrib junk, *a; int status; + struct request req[REQUEST_QUEUE_SIZE]; + int num_req = 0, max_req = 1, reply; + int write_error = 0, read_error = 0, write_errno; a = do_stat(fd_in, fd_out, remote_path, 0); if (a == NULL) @@ -726,87 +776,103 @@ /* Read from remote and write to local */ offset = 0; - for(;;) { - u_int len; + while (num_req > 0 || max_req > 0) { char *data; + u_int len; - id = expected_id = msg_id++; - - buffer_clear(&msg); - buffer_put_char(&msg, SS...
2006 May 03
0
Strange problems with net/ftp in Rails
...first file, and hang. It creates a file on the destination server, but it''s a zero byte file. I make a connection and login: @connection = Net::FTP.new @website.site_ftp @connection.login( @website.username, @website.password ) I then change to the right folder and send the file: chdir remote_path @connection.putbinaryfile local, remote_file And the error is raised on that last line - just a TransferError from the net/ftp library, and a zero-byte file after hanging for about 30 seconds. Can anyone offer any suggestion at all? Bear in mind this has worked fine with a great number of hosts,...
2006 Mar 17
1
Multiplexing overflow
...ve a problem with rsync. I was trying to synchronize directory trees on 2 servers and got following error: multiplexing overflow 101:7104843 [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(809) Complete rsync's output: > /usr/local/bin/rsync -avzp user@host:remote_path local_path receiving file list ... done ./ DelphiStudio7.rar readme.koi8.txt readme.txt .ssh/ backup/ ssl/ ssl/data/ ssl/htdocs/ www/ www/data/ www/htdocs/ www/htdocs/.htaccess www/htdocs/DelphiStudio7.rar multiplexing overflow 101:7104843 [receiver] rsync error: error in rsync protocol data stream...
2016 Oct 09
0
rsync: connection unexpectedly closed
... --exclude-from=$EXCLUDES       --partial       --progress        --owner       --perms       --progress       --timeout=0       --times       --stats" sudo rsync -e "ssh -i ${IDENTITY_FILE} -v -p ${REMOTE_PORT}" $OPTS / $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH Note that I have temporarily disabled timeouts and added extra verbosity. The transfer to the remote host via SSH works fine, up until it gets to a 30+ GB file (a VM image). It gets about 90+ percent of the way through, hangs, and then times out. On the client side I see the following: ......
2002 Jan 30
1
Quick sftp status indicator.
...e); } +void +updateprogressmeter(int ignore) +{ + int save_errno = errno; + + progressmeter(0, offset, file_size, filename); + signal(SIGALRM, updateprogressmeter); + alarm(PROGRESSTIME); + errno = save_errno; +} + int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, int pflag) { int local_fd; u_int expected_id, handle_len, mode, type, id; - u_int64_t offset; char *handle; Buffer msg; Attrib junk, *a; @@ -723,6 +739,12 @@ return(-1); } + file_size = a->size; + filename = remote_path; + progressmeter(-1, offset, file_...
2002 Jun 01
0
Testing a transfer-only rsync tool
...e of it is pretty good, other bits show signs of being written in haste. I've tested it on a small number of scenarios so far, but nothing exhaustive. Commands accepted by the tool on stdin (* means not yet tested): cd REMOTE_DIR [LOCAL_DIR] chdir both sides at once tmpdir REMOTE_PATH [LOCAL_PATH] where temp-files go get REMOTE_FILE [LOCAL_FILE [BASIS_FILE]] rsync to the local system put LOCAL_FILE [REMOTE_FILE [BASIS_FILE]] rsync to the remote system mvget REMOTE_FILE [LOCAL_FILE [BASIS_FILE]] get, then delete REMOTE_FILE mvput LOCAL_FILE [REMOTE_FILE [BASIS...
2013 May 26
10
[Bug 1990] sftp segfaults when tab-completing a directory which contains umlauts
https://bugzilla.mindrot.org/show_bug.cgi?id=1990 Corentin Delcourt <codl at codl.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |codl at codl.fr --- Comment #8 from Corentin Delcourt <codl at codl.fr> --- Note that Arch Linux's
2016 Oct 10
6
rsync: connection unexpectedly closed
... --exclude-from=$EXCLUDES       --partial       --progress        --owner       --perms       --progress       --timeout=0       --times       --stats" sudo rsync -e "ssh -i ${IDENTITY_FILE} -v -p ${REMOTE_PORT}" $OPTS / $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH Note that I have temporarily disabled timeouts and added extra verbosity. The transfer to the remote host via SSH works fine, up until it gets to a 30+ GB file (a VM image). It gets about 90+ percent of the way through, hangs, and then times out. On the client side I see the following: ......