👤
Home Man
Search
Today's Posts
Register

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

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 12-14-2017
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)
# 2  
Old 12-14-2017
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)?
# 3  
Old 12-14-2017
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 12-14-2017
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.
# 5  
Old 12-15-2017
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
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sftp connection with password himanshupant Shell Programming and Scripting 5 04-16-2018 12:26 PM
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
New sftp connection jegaraman Red Hat 1 12-23-2015 01:51 PM
Establishing remote connection to a Xserver from a UNIX Box himanshu sood Shell Programming and Scripting 7 11-21-2013 11:54 AM
SFTP: Connection problem rangarasan UNIX for Dummies Questions & Answers 4 07-16-2013 06:21 AM
establishing connection with e-kermit running on LINUX from my operating system bicepjai Ubuntu 0 10-23-2011 08:31 PM
SFTP Connection error krishna87 UNIX for Dummies Questions & Answers 3 08-24-2011 11:58 AM
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
SFTP Connection Closed ed.browne UNIX for Advanced & Expert Users 1 07-23-2008 01:07 AM


All times are GMT -4. The time now is 01:29 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?