Visit Our UNIX and Linux User Community


SFTP and SCP help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SFTP and SCP help
# 1  
Old 06-09-2011
SFTP and SCP help

Hi All,

I have to make an automated script that needs to do SFTP or SCP from my Unix server to another Unix server.

I have gone through search of this website for sftp and scp.
I really get confused when it talk about ssh key or rsh key and sftp -b thing

I would really appreciate if some one can explain step by step commands that needs to be executed from A to Z of this setup.
or point me to any easy to understand documentation please.

Earlier also i was required to make sftp script and gave up as i was not aware of unix.com at that time.

Hopefully this time with the help of Unix.com community i would completely understand the logic of SSH or RSH for SFTP and SCP.

NOTE: I know how to do FTP.


Appreciate your help.
# 2  
Old 06-09-2011
if u r having problem with creating ssh connection you can go through this:
SSH login without password
# 3  
Old 06-09-2011
# 4  
Old 06-09-2011
Thanks rishav and vidyadhar85.

I now understand how to set public and private key.
Waiting for permissions to try that out.

Also i was told that the existing script that we have for ftp which asks for password will work fine if i just replace ftp with sftp.
Though we have to pass the password.

Is it true the existing ftp script will work with passing of password if i just replace word "ftp" with "sftp"?

Appreciate reply.
# 5  
Old 06-09-2011
Quote:
Originally Posted by pinnacle
Also i was told that the existing script that we have for ftp which asks for password will work fine if i just replace ftp with sftp.
Though we have to pass the password.

Is it true the existing ftp script will work with passing of password if i just replace word "ftp" with "sftp"?

Appreciate reply.
scp sftp, ssh, sudo, and su are all explicitly designed to prevent you from using stored plaintext passwords because stored plaintext passwords have always been a really, really, really bad idea from a security perspective.

Forget the password and use keys.

Previous Thread | Next Thread
Test Your Knowledge in Computers #688
Difficulty: Medium
The first computer to implement architectures enabling reverse Polish notation (RPN) was the Apple I computer.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP / SCP using password

Hi, I was provided with sftp servername, user and password and the requirement is to connect to sftp server using credentials provided and drop the file. Manually i am able to connect with commands like sftp user@servername and after clicking enter, i was asked for a password and entering... (4 Replies)
Discussion started by: forums123456
4 Replies

2. Shell Programming and Scripting

Passwordless SFTP - SCP Option?

I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated. Currently we use SFTP and the script asks for the password of the... (20 Replies)
Discussion started by: Stigy
20 Replies

3. Solaris

SCP/SFTP- Stalled- solaris

hello all, I am getting the following error with the SCP/Sftp is getting stalled on solaris 10 . pxxx_xxx_SOLARIS64_1of7.zip 0% 2068KB 0.0KB/s - stalled -Write failed: Broken pipe pxxx_xxx_SOLARIS64_1of7.zip ... (2 Replies)
Discussion started by: Sojourner
2 Replies

4. AIX

what to use sftp or scp

hi, i have a weird problem i have to copy the file with caret(^) in it. but when i tries to copy with scp. It(scp) says that it cant use ^file_name scp mohit^narang user@machine/mohit^narang the error comes in the second parameter.if i used user@machine/mohit_narang(under score) instead... (2 Replies)
Discussion started by: narang.mohit
2 Replies

5. Shell Programming and Scripting

scp script for doing sftp

Hi, I have to do SFTP from Linux machine to Salaries SFTP folder. Using psftp I got the following fingur print and I know using scp I can go the sftp transfer. But I believe I need public key file generated. Can some one pls let me know how to generate the public file using following finger... (1 Reply)
Discussion started by: iamakshay
1 Replies

6. Red Hat

sftp/scp without password

Hi, I want to use sftp/scp without password.How can I do that ?? I plan to use script with scp/sftp and execute by cronjob ,any sample or example?? How can I test the scp/sftp working or not in the same user account , in the same red linux server?? any suggestion ??? (5 Replies)
Discussion started by: chuikingman
5 Replies

7. UNIX for Dummies Questions & Answers

scp or sftp to Window server

Dear Unix Gurus, I have a question to confirm before I proceed to script my program. I'm currently running on IBM AIX Ver 5.3. I just like to know if it's compatible to use scp or sftp between AIX and Wintel server? I'm trying to scp or sftp a file from AIX to Window server and I was... (1 Reply)
Discussion started by: lweegp
1 Replies

8. UNIX for Advanced & Expert Users

sftp vs scp

My transmit rates are waaay faster using scp over sftp....anyone know why scp is faster than sftp? I am using solaris 8 for my unix systems. -S (2 Replies)
Discussion started by: Sowser
2 Replies

9. UNIX for Dummies Questions & Answers

sftp/scp autologin

Ive have 2 unix machines i need to transfer files from one to the other. Im trying to use either sftp or scp as ftp is out of the question. Ive created the RSA key on one machine and copied it across but im still prompted for a password. Assume this is due to the fact that im not using the same ID... (8 Replies)
Discussion started by: devid
8 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

Featured Tech Videos