File upload message in SFTP


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting File upload message in SFTP
# 1  
Old 09-13-2018
File upload message in SFTP

Hi,


Below script is running on AIX 7.1 ( 7100-04-05-1720 version ) server. Recently OpenSSH version installed on server got updated from OpenSSH_6.0p1 to OpenSSH_7.5p1 version. After this update we do not receive any file upload message after put/mput command in SFTP.
Code:
sftp -b - user@server <<END_SCRIPT > log_file 2>&1
mput dir.txt
quit
END_SCRIPT


Output in OpenSSH_6.0p1 version:
Code:
sftp>     mput dir.txt
Uploading dir.txt to /home/sftp/sftpuser/dir.txt
sftp>     quit

Output in OpenSSH_7.5p1 version:
Code:
sftp>     mput dir.txt
sftp>     quit


We are not getting 'Uploading' file message in newer version. Any idea why this is occurring and how to resolve it ? Can someone point to right configuration if this message is driven by any ?


Thank You for your help in advance.

Last edited by Scott; 09-13-2018 at 05:10 PM.. Reason: Please use CODE tags
# 2  
Old 09-16-2018
Unsure if this is coming from an sFTP client, or a script that calls sFTP. If it is a script, it would probably benefit to post the code here. Otherwise that's probably an issue with the sFTP client or the server. Unless you wish to look and re-write the code of the client or server, you're probably better off to just do an 'ls' after the file is uploaded. Or do something like 'ls -ld filename' in the script after the file is uploaded to check.

Hope that helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Solved] ls -l in CentOS 6.4 after upload using sftp

Hi everyone, Something rather interesting just happened to me. I uploaded a file to a server through sftp. I closed the connection and then logged on to the server via ssh. So far so good. When I typed ls -l in the remote server to retrieve a directory listing, the file that was previously... (2 Replies)
Discussion started by: gacanepa
2 Replies

2. Shell Programming and Scripting

Generate file and Upload to SFTP server.

Xperts, My requirement is something like this, I have a sql script which i need to embed in a shell. The sql (oracle) script will generate a .csv file in some Unix directory. the approximate file size is around 10 mb which i need to upload to an sftp server. My concern here is how to make... (5 Replies)
Discussion started by: Showdown
5 Replies

3. Shell Programming and Scripting

blocking connection message in sftp

when i use below sftp command we get connectuiobn message , is there a way to block it. cnt=`sftp -b 'count.sh' <username>@<password>:/gsmtmeg1/java5/docs/common/ | grep -v '^sftp>' | wc -l`;echo $cnt Output ** RESTRICTED ACCESS ** You are authorized to use this system for approved... (0 Replies)
Discussion started by: lalitpct
0 Replies

4. Shell Programming and Scripting

Expect Script for SFTP Upload

I am attempting to utilize an expect script (that is called from a parent bash script) to perform a file transfer over sftp. The script works except I cannot catch timeouts. I need to be able to tell in the parent bash script when the expect script has timed out, or completed successfully. It... (3 Replies)
Discussion started by: thaller
3 Replies

5. Shell Programming and Scripting

help to upload multiple files through SFTP

Hi Experts, Please help me to write the expect script for uploading multiple files in one shot . Below is my program that I have written. #!/usr/local/bin/expect -f #/home/kulbhushan/sftp_prog.sh # procedure to attempt connecting; result 0 if OK, 1 otherwise proc connect {passw} { expect... (1 Reply)
Discussion started by: kulbhushan
1 Replies

6. UNIX for Advanced & Expert Users

chrooted SFTP upload folder

Hi List, I have set up a chrooted SFTP setup following the instructions I found on tech republic: /blog/opensource/chroot-users-with-openssh-an-easier-way-to-confine-users-to-their-home-directories/229 I have successfully got it all working and I can download files when logged in via sftp... (0 Replies)
Discussion started by: landossa
0 Replies

7. Ubuntu

I want to upload file on remote machine in noninteractive mode through SFTP

Hi All, I want to upload file through SFTP in non interactive mode on remote server. please tell me what will have to do in oreder to do SFTP . (1 Reply)
Discussion started by: kulbhushan
1 Replies

8. Shell Programming and Scripting

How to Write sftp through "expect" for file upload ?

Hi Experts , I am new to unix programming please tell me how to write expect and hoe to call it for automated file upload process. help me really ! (0 Replies)
Discussion started by: kulbhushan
0 Replies

9. Shell Programming and Scripting

sftp file upload problem

Hi All, I am trying to upload a text file from HP unix to Windows tectia server using sftp, the text file shows with new line character after upload. For EG : abc.txt file contains 123 456 aftre upload it shows as 123 456 i am using sftp version 2.0 TQ, (4 Replies)
Discussion started by: phani1312
4 Replies

10. Solaris

sftp error message VREY VERY URGENT

when one custmer connect using sftp got the following delivery report can you plase suggest on the issue. 14:04:36 SFTP Delivery properties: Host: <ip> Target Folder: </home> User: <user> 14:04:36 Keys loaded succeffuly 14:04:36 GEN-E-GENERAL, Error connecting to server : Invalid... (6 Replies)
Discussion started by: GIC1986
6 Replies
Login or Register to Ask a Question