Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Sftp connection not establishing from Linux to DataPower

UNIX for Beginners Questions & Answers


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-14-2017   -   Original Discussion by renukeswar
renukeswar's Unix or Linux Image
renukeswar renukeswar is offline
Registered User
 
Join Date: Jan 2017
Last Activity: 14 December 2017, 12:36 PM EST
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Sftp connection not establishing from Linux to DataPower

Hi Everyone,

I am trying to send files from Linux to DataPower server using public key based authentication but it's not working as expected and every-time password expecting for sftp transfer.

Can someone please help on this?

Steps I fallowed:
  1. Created keys pair at source server
  2. Copied in public in DataPower Gateway config file
  3. Initiated transfer

Logs when I initiated transfer:




Code:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: ./publickey_for_pwdless.pub
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
user@XX.XX.XX.XX's password:


Last edited by rbatte1; 12-14-2017 at 11:34 AM.. Reason: Converted text list to formatted list with LIST=1 tags and added CODE tags for output (removing auto-email link definition)
Sponsored Links
    #2  
Old Unix and Linux 12-14-2017   -   Original Discussion by renukeswar
RudiC's Unix or Linux Image
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 26 May 2018, 5:24 PM EDT
Location: Aachen, Germany
Posts: 12,756
Thanks: 417
Thanked 3,923 Times in 3,607 Posts
It's obvious that your publickey authentication doesn't work. Are you able to log in interactively, i.e. to a command line session? Are you using the correct protocol (version)?
Sponsored Links
    #3  
Old Unix and Linux 12-14-2017   -   Original Discussion by renukeswar
renukeswar's Unix or Linux Image
renukeswar renukeswar is offline
Registered User
 
Join Date: Jan 2017
Last Activity: 14 December 2017, 12:36 PM EST
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Hi Rudic,

I am able to login using CLI with password using sftp protocol for that.

But I identified in logs there is no match found for DataPowerSSH, is that cause for public key login?

debug1: no match: DataPowerSSH_1.1

Regards,
Renu
    #4  
Old Unix and Linux 12-14-2017   -   Original Discussion by renukeswar
RudiC's Unix or Linux Image
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 26 May 2018, 5:24 PM EDT
Location: Aachen, Germany
Posts: 12,756
Thanks: 417
Thanked 3,923 Times in 3,607 Posts
Sorry, I don't have the slightest idea about what DataPowerSSH is and what it does / requires.
ssh needs
- correct and compatible protocol and key version
- correct key file location, including permissions
- correct user.
If you can log in interactively, sftp should work as well. If you don't, don't expect sftp to work.
Sponsored Links
    #5  
Old Unix and Linux 12-15-2017   -   Original Discussion by renukeswar
rbatte1's Unix or Linux Image
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 24 May 2018, 12:44 PM EDT
Location: Lancashire, UK
Posts: 3,535
Thanks: 1,558
Thanked 692 Times in 622 Posts
You probably need to set up password-less SSH connection keys. If you have created the keys, put them in the correct place and it is still not working, it could be down to permissions. The SSH protocol is quite rightly paranoid so the various files & directories should be RW to the owner only.

Can you show us the output from both the client and the server side for these:-

Code:
uname -a
ls -ld ~ ~/.ssh ~/.ssh/*



Thanks, in advance,
Robin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to check the status of sftp connection is successful or not in Linux? sravanreddy Shell Programming and Scripting 7 02-23-2016 06:40 AM
Establishing remote connection to a Xserver from a UNIX Box himanshu sood Shell Programming and Scripting 7 11-21-2013 11:54 AM
establishing connection with e-kermit running on LINUX from my operating system bicepjai Ubuntu 0 10-23-2011 08:31 PM
NoMachine NX window closes after establishing connection blackicecube SuSE 3 12-19-2009 11:03 AM
Problem establishing Connection on the LAN sbmada Shell Programming and Scripting 2 04-23-2009 09:28 AM



All times are GMT -4. The time now is 11:55 AM.