Sftp Help Needed!!!!!!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sftp Help Needed!!!!!!!
# 1  
Old 09-18-2006
Sftp Help Needed!!!!!!!

Thank you for the help

Last edited by scooter17; 09-19-2006 at 01:40 PM..
# 2  
Old 09-18-2006
You need to change 'ftp' to 'sftp' below. Also, you'll need to make sure the options you're using with ftp will work with sftp.
Code:
sftp -v -n -i ${MAINFRAME_DB_HOST} 21

Get a manual on 'sftp', which will explain the options. If sftp is not installed in a standard location, the man pages may not be in a standard location either. In that case, you'll have to set the MANPATH env variable appropriately.

Code:
$ man sftp
SFTP(1)                   BSD General Commands Manual                  SFTP(1)

NAME
     sftp - secure file transfer program

SYNOPSIS
     sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config] [-o ssh_option]
          [-P sftp_server_path] [-R num_requests] [-S program]
          [-s subsystem | sftp_server] host
     sftp [[user@]host[:file [file]]]
     sftp [[user@]host[:dir[/]]]
     sftp -b batchfile [user@]host

DESCRIPTION
     sftp is an interactive file transfer program, similar to ftp(1), which performs all
....

# 3  
Old 09-19-2006
thank you for your help.

Last edited by scooter17; 09-19-2006 at 01:40 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

2. UNIX for Dummies Questions & Answers

Sftp education needed

I have a program running on unix that creates a text file as part of a triggered event. the text files are written to the same directory everytime. There are 15+ users that could possibly be creating the files. Once the file is created, I need to move the file to a third party system. the only... (2 Replies)
Discussion started by: jdboydinaz
2 Replies

3. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

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. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

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

5. Shell Programming and Scripting

Help needed to setup SFTP

Hi Gurus, We need to make SFTP in non_interactive mode. I have done steps like key generation, copying public key into destination server, changing file/folder permission. Still we are not able to achieve it. Please check the log below.... $ sftp -v b2cint@10.76.120.120 Connecting to... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

6. Shell Programming and Scripting

SFTP script help is needed

Hello all and Happy 2010! I have following problem and I do not have a full solution yet. Maybe someone of you could help .... I have remote sevrer A and I am connecting from my local server via SFTP to download .TXT files. -Files are dropped at random times into download folder on server A... (7 Replies)
Discussion started by: kalimero
7 Replies

7. UNIX for Dummies Questions & Answers

Help needed for listing files using SFTP

Hello All I want to list files using SFTP. this should work the same way as ls -Ap1t $dir is working in a perl program. but for SFTP i dont find any option like as A,p,1,t.so how to use this (0 Replies)
Discussion started by: vikas_poonia
0 Replies

8. Shell Programming and Scripting

sftp script needed for solaris box

Hi , I have a solaris box through which i need to connect to ATM's and pull files using sftp. I did same type of scripting using ftp before but no sftp.The problem now i am facing is, i want to put the password along with this sftp (non-interactive) script. Unfortunately there is no... (3 Replies)
Discussion started by: Renjesh
3 Replies

9. Shell Programming and Scripting

Help needed with secure shell "sftp"

I am using sftp -V sftp: F-Secure SSH 3.1.0 (build 12) on sparc-sun-solaris2.8 I think it's happening due to secure shell. I can not rename files with "get". As "get" is working fine with open shell sftp. Here are the details about the problem: "get" does not rename the file. It actually... (0 Replies)
Discussion started by: val0822
0 Replies

10. Shell Programming and Scripting

sftp script needed

Hello all, need help to write a smal script to send files to remote sys using sftp @ HP UNIX environment. Thanks (1 Reply)
Discussion started by: ravi.sadani19
1 Replies
Login or Register to Ask a Question