Sftp connection not establishing from Linux to DataPower

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Sftp connection not establishing from Linux to DataPower
# 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 12:34 PM.. 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 or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sftp connection with password

I am running this script to copy pattern files in local but it is asking for password even passing the hardcode value Script:- PASSWORD="xyz" sftp -oport=1002 user@host:/dir/archive/file*.txt /di/data/ << EOF $PASSWORD quit EOF Got error :- -bash-4.1$ sh sftp_with_password.sh... (5 Replies)
Discussion started by: himanshupant
5 Replies

2. Shell Programming and Scripting

How to check the status of sftp connection is successful or not in Linux?

Hi All, We are working on linux with putty terminal for file transferring using SFTP server... here we want to know /We have Urgent Requirement If SFTP connection is successfull then we should get .txt log file in target locaton as "Success/Failure" Please provide batch script for above... (7 Replies)
Discussion started by: sravanreddy
7 Replies

3. Red Hat

New sftp connection

Dear All , I have a openssh 4.3p2 , but i need to configure sftp for a user which is present in the server. This user has to see only the specific directory not all. I tried to do the changes in sshd_config for openssh 4.9p1 , but for openssh 4.3p2 how to do it. Any one pl help. ... (1 Reply)
Discussion started by: jegaraman
1 Replies

4. Shell Programming and Scripting

Establishing remote connection to a Xserver from a UNIX Box

Hello Guys , I have been working on a script where we are looking to connect a remote Xserver from a Unix box. Once a connection is made , i need to run several commands on remote machine to check various stuffs. As per my knowledge on unix (which is like a drop in ocean) , i found SSH as a... (7 Replies)
Discussion started by: himanshu sood
7 Replies

5. Ubuntu

establishing connection with e-kermit running on LINUX from my operating system

we designed a primitive operating system for learning basics fundamentals and we created process switching, interrupt/polled IO for device drivers like UART and printers. We accomplish this by using our own tools called SPEDE (for downloading compiled elf image from host ubuntu system that have... (0 Replies)
Discussion started by: bicepjai
0 Replies

6. UNIX for Dummies Questions & Answers

SFTP Connection error

Hi I when I trying to SFTP a file to a server I am getting this below error: Connecting to 3.12.911.100... ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory Host key verification failed. Connection closed Can you please help me in debugging this error. ... (3 Replies)
Discussion started by: krishna87
3 Replies

7. SuSE

NoMachine NX window closes after establishing connection

Hi, I am trying to use nomachine nx server and client. But somehow it doen't work. What happens is the following: 1.- Client starts up 2.- Client authenticates with Server 3.- The NoMachine window appears for 2-4 seconds 4.- The NoMachine window exists Somehow a "closeEvent" is sent.... (3 Replies)
Discussion started by: blackicecube
3 Replies

8. Shell Programming and Scripting

SFTP connection problem

Dear All, I'm trying to configure the passwordless connection between two servers say Server A and Server B. My requirement is a passwordless connection from Server A to Server B. I have done the configuration in both the servers. In Server A its successfull but from Server B its everytime... (7 Replies)
Discussion started by: panknil
7 Replies

9. Shell Programming and Scripting

Problem establishing Connection on the LAN

Hi everybody i need your help on this I have LAN which run Sun microsystem with solaris 7 OS on each of the servers. The LAN was working fine before an interruption of power supply which makes servers to operating as standalone servers. i.e none of the servers have access to one another. How do i... (2 Replies)
Discussion started by: sbmada
2 Replies

10. UNIX for Advanced & Expert Users

SFTP Connection Closed

Hey when trying to connect to a server using a key I get sftp -o 'Port=22' -o'IdentityFile=/home/datatel/.ssh/id_dsa_xei' becker_xei@host Connecting to host... ANGEL SFTP ServerConnection closed by host Connection closed Any ideas? (1 Reply)
Discussion started by: ed.browne
1 Replies
Login or Register to Ask a Question