sftp file transfer


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sftp file transfer
# 8  
Old 07-16-2008
ok...If I read this correctly, and granted I'm in the middle of an overnight maintenance...so that's a big if...

The issue is that 2 of your boxes have shared ssh keys, meaning that they "know to trust each other". When on box goes to log into the other it checks against the .ssh/known_hosts file on both to see if it has a "magic word" to grant it access. That's why you can log into those two easy peasy.

Your other two boxes haven't been told that they are buddies, so when one tries to connect to the other, it heeds Moms advice and doesn't talk to strangers. What I believe Zaxxon is saying is that you may be able to recreate the keys assuming you know the passphrase, but it would probably be easier (for everyone involved) to just create new keys. It's a relatively painless process, I don't know it off the top of my head, but I found the method no more than ~a week ago by googling "ssh without password".
# 9  
Old 07-16-2008
Since it works as you say with your frontend servers (what ever role that is), but not with your backend server, it seems the passphrase being entered at creation time can be left out, as it would ask for a password/not work with your 2 other servers either.

So I guess it's "wrong or no pub key" on your "backend" servers. Check them if their authorized_keys of the specific user etc. has the same pub key included as the other 2 where it's working.
# 10  
Old 07-16-2008
Java sftp login

hi DeCoTwc
u may be correct but for these servers i dont have admin acces.
and i am not able to use locate and slocate also, so can u plz briefly explain what might be the reason for this
# 11  
Old 07-16-2008
I give up, good luck Smilie
# 12  
Old 07-16-2008
Java sftp file transfer

hi
i am using sftp and scp protocol to login to the remote server.but the remote server is asking for the password.
can any one explain in what are all the scenarios i can get this

please help
# 13  
Old 07-16-2008
Ok...so we are now even further into the overnight Maint...so I may be even further off...

But are you saying that there is a server...for which you are not an admin ...that is asking you for a password...and you don't know why?

...I'd have to assume the reason for that is because, well, you know, because if we didn't have passwords people who weren't admins would be logging into our servers.

But I could just be sleep deprived.
# 14  
Old 07-17-2008
Java sftp login

hi
i am still searching for the answer, why 2 servers are allowing and other 2 are not .
please can anyone explain
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need some help regarding file transfer between server (sftp/scp)

Hi All, Need some help regarding file transfer between server. Suppose we have system-A and system-B. To transfer file from system-A to system-B we usually share the public keys of system-A to system-B and do scp/sftp to transfer a file. Is it possible that public key of system-B can be... (3 Replies)
Discussion started by: abhi_123
3 Replies

2. UNIX for Dummies Questions & Answers

Transfer image file from local to remote with sftp

Hi. I have managed to transfer a file from remote to my raspberry pi, but I have the camera mounted on the Raspbien so I would like to transfer the image the other way. I use this line: sshpass -p 'PASSWORD' scp -- USER@ssh.servername.com:/www/cam/image.jpg /home/pi/shared/web/image.jpg (4 Replies)
Discussion started by: brickglow
4 Replies

3. UNIX for Dummies Questions & Answers

SFTP File transfer issue

Hi guys, Need a quick and urgent help on below issue. One of our application is try to transfer the file to another host thru sftp process My file is about 1 GB. Job is getting hung while transferring the file. So when I login as sftp and check the file system space is only in MB... (2 Replies)
Discussion started by: Vinoth Kumar G
2 Replies

4. Shell Programming and Scripting

File transfer using SFTP

Hi, I want to a transfer file from remote machine to a local machine using SFTP where both my local and remote machines are Ubuntu machines.So i wanted to write a unix bash script which uses SFTP command to transfer the file from remote to local machine. My remote server is 178.28.30.106. ... (14 Replies)
Discussion started by: shree11
14 Replies

5. Shell Programming and Scripting

Passwordless file transfer using sftp

Hello all, I have a requirement, in which we need to stage a package to Unix remote server in an automation (we cant use ssh key generation) , do u have any idea how we can transfer the package to remote server using sftp .if you have any script plz share it to me (4 Replies)
Discussion started by: Ramji Sundaram
4 Replies

6. Shell Programming and Scripting

Shell script to transfer file via SFTP

Hi all, I'm trying to do a script to transfer file between my server and an external server via SFTP protocol. It doesn't use rsa key, but password. When I run the script, it throw back a prompt that request me to put the password. How should I do for automatic login? Pleaes help :( ... (2 Replies)
Discussion started by: Kapom
2 Replies

7. Shell Programming and Scripting

SFTP with ASCII file transfer

Hello - I have text file and need to load the data in Oracle through sqlloader. I need to move this file to unix server and load into oracle. When i SFTP(unfortunately i do not have FTP) to unix box, each line is appended with ControlM character... since it is transferring in BINARY... (4 Replies)
Discussion started by: govindts
4 Replies

8. Shell Programming and Scripting

SFTP file transfer mode question

I am having trouble viewing a file in ASCII after doing a 'get' using SFTP. It appears to have come across as machine language. Does the file have to be in ASCII format prior to the 'get' or is there a way to convert it to ascii after I get it onto my server? I have read where the secure file... (0 Replies)
Discussion started by: wsiefkas
0 Replies

9. HP-UX

SFTP Protocol: How to transfer the file in PC Format

Hi, We are facing issue with files transfered using SFTP in Hp-UX. The transfered files are in Unix Format. That is, file format as UNIX (LF) instead of a PC format (CR & LF). How can we achieve file transfers as PC format using SFTP? Your help and input will be highly appreciated. ... (2 Replies)
Discussion started by: brap45
2 Replies

10. UNIX for Advanced & Expert Users

sftp command for file transfer

hi, I need to sftp a file from one unix system to another unix system. eg: filename is test.txt servername : abc@xyz please give me the sftp command for that. thanks in advance.. mohan.p (2 Replies)
Discussion started by: mohanpadamata
2 Replies
Login or Register to Ask a Question