sftp/scp autologin


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers sftp/scp autologin
# 1  
Old 01-23-2006
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 on both machines. Is there anyway round this as im not able to create the same ID on both machines

regards

Dave
# 2  
Old 01-23-2006
may be rcp can help you. In case of rcp you have to created the username entry in the .rhost file in the destination machine for the source machine.

The entry is like
username + machine in the .rhost file
Try it.

Rajesh
# 3  
Old 01-23-2006
Rajesh,
Due to security issues i need to use sftp or scp im afraid. Isnt scp just a more secure version of rcp?

Regards

Dave
# 4  
Old 01-23-2006
Quote:
Originally Posted by devid
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 on both machines. Is there anyway round this as im not able to create the same ID on both machines

regards

Dave
What OS are you using? Which ssh server?
# 5  
Old 01-24-2006
Going from solaris to AIX. ssh version 2
# 6  
Old 01-24-2006
Are they both Openssh servers or F-secure?

Post the output of
Code:
ssh -V

# 7  
Old 01-25-2006
SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.

OpenSSH_3.8.1p1, OpenSSL 0.9.6b 9 Jul 2001
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell : sftp autologin not working ...

Hi folks, for sftp autologin, while browing in unix.com forums.. I got the below code. I tried to execute that code but no luck. #!/bin/sh HOST=yourservername USER=yourusername PASS=yourpassword echo "sftping file ..." lftp -u ${USER},${PASS} sftp://${HOST} <<EOF cd /tmp get tmpfile... (7 Replies)
Discussion started by: scriptscript
7 Replies

2. 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

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

sftp autologin is working but ...

Dears, I am new to linux scripting and I was look for a way to auto login to a server using sftp to download a file. I found one and it is working fine. But i don't know the meaning of <<EOF in the code. Any one explain it to me: #!/bin/sh HOST=yourservername USER=yourusername ... (1 Reply)
Discussion started by: torabi
1 Replies

5. Shell Programming and Scripting

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... (4 Replies)
Discussion started by: pinnacle
4 Replies

6. 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

7. 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

8. 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

9. 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

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