Sftp- file not present in the remote location


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sftp- file not present in the remote location
# 1  
Old 11-26-2011
Sftp- file not present in the remote location

I'm able to connect to the remote server (server_name). But when i'm transferring the files, its getting transferred. But the file is not there in the remote location.

I tried with a zero byte and 5 byte file

Code:
sftp6 -P <port-no> --password=file:///<file having the pwd> user_name@server_name

Error - I'm not able to figure out why this is happening.
Code:
sftp> put test.txt
test.txt                                                                                                                    |    10B |     215B/s | TOC: 00:00:00 | 100%
sftp> ls

Can someone please help
Smilie
# 2  
Old 11-26-2011
Try logging into the remote server and check if the file is present in the user_name's home directory.
Check if there is any disk space issue on the remote server.

--ahamed
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SFTP file check through a remote host

Hi all, posting my first time, hope not breaking posting rules with it, if yes, let me know. I'm trying to build a script to check a file in an sftp server through a remote server. The intention is to check the file in a sftp host, and if the file is found or not, it should send an email.... (4 Replies)
Discussion started by: MrShinyPants
4 Replies

2. UNIX for Dummies Questions & Answers

SFTP to delete remote file

Hi guys In this scenario, i have been able to transfer the file from a remote server to my local server, but how to delete the file from remote server once its copied. I am using this command MYFILE=/tmp/MyFiLe.$$ echo rm FROM_DIR/K* >$MYFILE then sftp -b $MYFILE rm -f $MYFILE and I have... (1 Reply)
Discussion started by: rubel
1 Replies

3. Shell Programming and Scripting

SFTP problem......File not getting from Remote server

Hi, We are using one unix script which is using sftp command and connect to remote server and get some file form remote server. some time after running this script we are not getting any file . Could you please tell us detailed validation that is there any problem with... (6 Replies)
Discussion started by: maheshkumar93@g
6 Replies

4. UNIX for Dummies Questions & Answers

Find the latest file on remote sftp

Hi All, I need your help in finding the latest files in remote sftp and get those files to local server and process them. Please let me know I appreciate your valuable inputs. Thanks raj (7 Replies)
Discussion started by: rajeevm
7 Replies

5. Shell Programming and Scripting

SFTP - Get size of file on remote server

Hi, I have a requirement where I need to do SFTP connection to remote server, get the size of the file on remote server and depending on the size, i need to get the file onto local server. Is there any command in SFTP to get the size of the file. I found one in FTP but not in SFTP (2 Replies)
Discussion started by: forums123456
2 Replies

6. Solaris

File copying to Remote Location

Hi Team, I am copying larger set of files from local to remote location through FTP. Remote location is processing the file before copying the full set of file(less than 100%). Remote location file process should be started post 100% file completion(full copied) and need to display some... (1 Reply)
Discussion started by: boopathi
1 Replies

7. Solaris

list of files in a txt file from sftp location

I want equivalent of ftp in sftp for listing of files into local machine from sftp location. ftp>ls -l list.txt the above creates a file list.txt in the local machine's current directory. sftp>ls -l list.txt it is giving Couldn't stat remote file: No such file or directory is there... (1 Reply)
Discussion started by: megh
1 Replies

8. Shell Programming and Scripting

Checking the file in remote server using SFTP

Hello, I would appreciate if any one can help me on this. The below script start running at 12:30AM. Every 5 min, i go and check the remote site. If i see filewatch.txt over there, then i need to call another shell script and load the data into database. If i don't see that file, then i have to... (2 Replies)
Discussion started by: govindts
2 Replies

9. Shell Programming and Scripting

tail copy of a file to remote location

Hello, I have a solaris box and a windows server. The windows server runs cygwin for ssh service. I have an audit log in solaris box. When ever new records are added to the log file, this delta has to be trasported to a remote file in windows. I can do a ssh once in a while, but want the... (7 Replies)
Discussion started by: unori
7 Replies

10. Shell Programming and Scripting

creating a file on remote directory using sftp

Hi, My requirement is to sftp a file from one server to another.After the file is completely transferrred, i should be able to create a text(dummy) file on the remote directory. How could this be accomplished. Any suggestions? (1 Reply)
Discussion started by: borncrazy
1 Replies
Login or Register to Ask a Question