The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP Protocol: How to transfer the file in PC Format brap45 HP-UX 2 06-17-2008 01:44 PM
sftp command for file transfer mohanpadamata UNIX for Advanced & Expert Users 2 06-12-2008 10:45 AM
SFTP Transfer Across Multiple Servers Cameron Shell Programming and Scripting 0 05-20-2008 10:08 AM
transfer word document using ftp,sftp artikulkarni UNIX for Dummies Questions & Answers 3 02-17-2008 07:10 PM
How to transfer files (By using generic script) when using sftp gsri Shell Programming and Scripting 0 08-28-2006 10:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2008
Satyak Satyak is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 85
Post sftp file transfer

hi
i am trying to login to remote server using SFTP Protocol and trying to upload a file butit is asking for the password.

Note: I am trying to connect to FrontEnd server

sftp SFTREGUP1@14.71.26.6
Connecting to 14.71.26.6...
Password Authentication
Password:


Please help
  #2 (permalink)  
Old 07-16-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
1) The remote server must have your public key in his authorized_keys.
2) The keys must not be generated with a passphrase/password.
3) Check your favourite search engine with the string "ssh without password" to get more info.
  #3 (permalink)  
Old 07-16-2008
Satyak Satyak is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 85
Post sftp file transfer

hi zaxxon
i have done all the requirements,but stil it is not working.
can u please explain the problem
  #4 (permalink)  
Old 07-16-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
As I wrote - either the public key of your ftp user is not added in the authorized_keys on the destination system or there has been entered a password/passphrase when generating that key.

If you did both, what does a
Code:
ssh SFTREGUP1@14.71.26.6 "ls"
show?
  #5 (permalink)  
Old 07-16-2008
Satyak Satyak is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 85
Post sftp file transfer

hi zaxxon

can u please tell how to checjk the Fingerprint and the passphrase for the bothservers
  #6 (permalink)  
Old 07-16-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
I don't know how to retrieve the passphrase for a key. Try asking the guy that created it, if he wrote it down in some sealed envelope.
Maybe it's easier to recreate the key and exchange it on the systems.

You did not write what error came when using ssh.
  #7 (permalink)  
Old 07-16-2008
DeCoTwc DeCoTwc is offline
Registered User
  
 

Join Date: Mar 2008
Location: NYC
Posts: 77
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".
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0