Question about Openssh and sftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question about Openssh and sftp
# 1  
Old 02-11-2009
Question about Openssh and sftp

I have to create an automated sftp job on an AIX box. The sftp command doesnt work. Do I need to install the openssh package in order to be able to invoke the sftp command?
# 2  
Old 02-11-2009
openssh will provide you with the necessary programs. If you're looking to automate using ssh, you might want to use the scp command instead.

That, and you'll need to setup auth keys if you want the script to run without a password being entered.
# 3  
Old 02-27-2009
Hi, so openssh was installed on our box.

Our originally script had this embedded in it:

ftp -v -n somesftpsite.com <<EOF
user username password
cd some dir
prompt
bin
mput *_files*
dir
bye
EOF


Now I understand it should look more like username@somesftpsite.com

So how can I make the above work using sftp, so it takes the password automatically? They are not trying to set up keys on their end.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Question about SFTP command

Hi All, This is JCL that contain command script to copy file to destionation (UNIX) I have 2 questions. ********* //NATTOUT1 JOB ACCL,'XXXXYYYY',CLASS=A,MSGCLASS=X, // NOTIFY=&SYSUID,REGION=0M,USER=SFTPXXX // SET... (1 Reply)
Discussion started by: getandput
1 Replies

2. Red Hat

RHEL 3 and OpenSSH question..

Hey Folks, I currently have several RHEL 3 machines. All of them are running OpenSSH_3.6.1p2, SSH protocols 1.5/2.0 I have a vulnerability issue and need to update OpenSSH to the newest version supported by RHEL 3. The question is: What would that version would be? This is... (1 Reply)
Discussion started by: 300zxmuro
1 Replies

3. Programming

Automatic SFTP transfers using OpenSSH on Windows and C#

I would like to create console application in c# to automate the process of downloading some files from a SFTP server to my local hard drive at a set time each week/day. SFTP Server installed OpenSSH for windows and client machine also. Any ideas how I could do such a task? or sample code. ... (0 Replies)
Discussion started by: sufiiyan
0 Replies

4. Shell Programming and Scripting

Yet another sftp automation question

Hello, I've read quite a few of the sftp questions and answers on the forum but I believe my situation is slightly different. I need to automate an sftp transfer to a host that requires not only a ssh publickey, but also a password. When I try using sftp in batch mode, supplying a "user... (4 Replies)
Discussion started by: n3llyb0y
4 Replies

5. UNIX for Advanced & Expert Users

SFTP Jail With Sun SSH Not OpenSSH

Hi all, I have a Solaris 10 server with SUN_SSH_1.1 installed. I want to restrict a user via SFTP to only be able to access one directory. I've written a little script in .profile which works perfectly for an ssh login but it appears sftp doesn't read the .profile file so it doesn't work. ... (2 Replies)
Discussion started by: Donkey25
2 Replies

6. UNIX for Dummies Questions & Answers

SFTP with OpenSSH

Hi All, I am using SFTP command to download some files from a remote server. My both the servers are SFTP enabled. I am sending SFTP request to a Windows server from my Linux server via openSSH. and i have already exchanged publickey between both the servers. But still remote server is asking... (1 Reply)
Discussion started by: vipparlas
1 Replies

7. UNIX for Advanced & Expert Users

Password Aging with Openssh 5.2 SFTP Subsystem Jail

All, I enabled PAM and aged a password, but when I login it asks me for the current password then says password unchanged after entering the current password. Is this a bug? My security dept is going to want me to enable password aging and I'm stuck! Any help on what the issu is? ... (6 Replies)
Discussion started by: markdjones82
6 Replies

8. UNIX for Dummies Questions & Answers

OpenSSH Configuration Question

In sshd_config it is written: # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. So does that mean for the following: ... (2 Replies)
Discussion started by: mojoman
2 Replies

9. Solaris

SFTP log question

On a Sun Solaris 9 box, how do I know what kind of SFTP server is running? And, if someone sftp'ed a file to my box, where is the log file I can check if the sftp session was a successful one or not? (1 Reply)
Discussion started by: fld2007
1 Replies

10. UNIX for Dummies Questions & Answers

OpenSSH: SFTP X SCP

Hi all, I'm implementing some updates to my scripts that are now using ftp command. I was thinking about replace it by SFTP. Now I see that SCP does basically the same that SFTP. So... what are the differences between them? Thanks in advance... ;O) (1 Reply)
Discussion started by: alienET
1 Replies
Login or Register to Ask a Question