SFTP issue when connecting from MVS to AIX

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support SFTP issue when connecting from MVS to AIX
# 1  
Old 09-15-2010
SFTP issue when connecting from MVS to AIX

Dear all,

I was given the ID_DSA.pub by an MVS user, which I placed in the appropriate user's authorized_keys file. When the user tris to SFTP from their side to the AIX box, the following error is got:
Code:
error: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
debug3: check_host_in_hostfile: filename /u/ssqsftp/.ssh/known_hosts 
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts 
debug3: check_host_in_hostfile: filename /u/ssqsftp/.ssh/known_hosts 
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts 
debug2: no key of type 0 for host 9.51.164.28 
debug3: check_host_in_hostfile: filename /u/ssqsftp/.ssh/known_hosts2
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2 
debug3: check_host_in_hostfile: filename /u/ssqsftp/.ssh/known_hosts 
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts 
debug2: no key of type 2 for host 9.51.164.28 
Host key verification failed. 
Connection closed

Can someone help me to fix this issue please? Is there something that I must be doing in addition?

Last edited by pludi; 09-15-2010 at 08:04 AM..
# 2  
Old 09-15-2010
What kind of SSH server is running on MVS and AIX? OpenSSH, Tectia, ...?
# 3  
Old 09-15-2010
Open SSH is the ssh
# 4  
Old 09-15-2010
Some questions
  • Does the user have a ~/.ssh directory? If so, what are the permissions?
  • Where did the user place the secret key? What are the permissions?
  • Do the fingerprints of your server and the clients known_hosts match? You can check this by running ssh-keygen -l /etc/ssh/ssh_host_rsa_key on the host (might have to adapt the path) and ssh-keygen -F 9.51.164.28 -l on the client.
# 5  
Old 09-16-2010
Tried that, now getting this set of errors:
Code:
debug3: authmethod_is_enabled password 
debug1: Next authentication method: password 
debug3: packet_send2: adding 64 (len 53 padlen 11 extra_pad 64) 
debug2: we sent a password packet, wait for reply 
debug1: Authentications that can continue: publickey,password,keyboard-interacti
Permission denied, please try again. 
debug3: packet_send2: adding 64 (len 53 padlen 11 extra_pad 64) 
debug2: we sent a password packet, wait for reply 
debug1: Authentications that can continue: publickey,password,keyboard-interacti
Permission denied, please try again. 
debug3: packet_send2: adding 64 (len 53 padlen 11 extra_pad 64) 
debug2: we sent a password packet, wait for reply 
debug1: Authentications that can continue: publickey,password,keyboard-interacti
debug2: we did not send a packet, disable method 
debug1: No more authentication methods to try. 
Permission denied (publickey,password,keyboard-interactive). 
Connection closed

Please help
# 6  
Old 09-16-2010
do you have the passphrase for their key? Do you get prompted for the key passphrase or remote password? Please verify with ssh running a command remotely like uptime as a test before messing with sftp. Please post the return code - echo $? from ssh. Please post the entire debug output(scrub as necessary)
# 7  
Old 09-16-2010
I recommend using ssh-copy-id. This makes sure the permissions, file names etc.. are all correct. If you don't want to give the user a regular password, you can just assign a password, do the ssh-copy-id yourself and then remove the password. Along those same lines, giving the account a regular password and making sure it actually works would be a good troubleshooting step. Having been through this myself several times, you may want to start an sshd with verbose debugging on a non-standard port and then try connecting to that non-standard port and see what the sshd says. You can make a new set of keys for yourself for testing, you don't need to use the user's keys. Make sure the user has the server's host key in their known hosts file before they try to do anything automated. This can usually be accomplished by doing a regular ssh, accepting the host key and then quitting. Only once you get regular ssh to connect should you try to use sftp. And make sure you can do all this yourself from a box of your own before making the user do it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SFTP issue

I'm trying to transfer a 1 GB file using sftp process. The process always gets disconnected in between (may be after 20%) file transfer when it runs from a batch script. If i do it in interactive mode, it works.. I checked with account admin to see the timeout option if any, but didn't help..... (2 Replies)
Discussion started by: Aswin Pillai
2 Replies

2. Shell Programming and Scripting

SFTP issue

Hi, I am trying to connect to a windows server via sftp from a user A and my job did log into it via user B. So I uses the following command to connect to teh new server. B>sftp -o IdentityFile=/pathtofile/id_rsa a@windows_server and it worked. But I don't want to use private key. Can we... (6 Replies)
Discussion started by: George1234
6 Replies

3. Red Hat

sftp issue

Hi experts, While trying to sftp from one the red hat linux box it is giving following error. Status: Connecting to 10.1.82.155... Response: fzSftp started Command: open "prodbill@10.1.82.155" 22 Command: Pass: *********... (2 Replies)
Discussion started by: sai_2507
2 Replies

4. Shell Programming and Scripting

Issue with Connecting to ftp server

Hi All, I have a ftp link as "ftp://ftp1.xyz.org/abc_ike/". The same thing is opening fine when I use a browser. But I am not sure how to connect to the above link from console. I used the command ftp ftp1.xyz.org The above is not working. I am not getting any error it simply stands still.... (1 Reply)
Discussion started by: machomaddy
1 Replies

5. Shell Programming and Scripting

Issue with sftp

Hi Friends, I have created a shell and which will sftp file1 from serverA to serverB. In sftp prompt on serverA it is showing the file1 is available on serverB. where as when connected to ServerB it is not showing the file1. How come this. ServerA sftp> ls hsstest.dmp sftp> pwd Remote... (9 Replies)
Discussion started by: sriramis4u
9 Replies

6. Shell Programming and Scripting

Script connecting to SFTP server

hi, i have to type a script that connect to a server SFTP(password not required) and run some easy command (e.g. ls,rm,mv,etc...). I wrote into the script the connection-string and the other commands. When I run it, it connects perfectly to the server but it stops at the home. Here is... (8 Replies)
Discussion started by: zangarules
8 Replies

7. AIX

MVS DB2 Connection from AIX

Hi, I want to try to connect to a DB2 (MVS) database from an AIX, through my c++ custom program. Is anybody who knows how can I do this? Which libraries should I use? Should I have a DB2 connect installed on my AIX? Thank you in advance. (3 Replies)
Discussion started by: develo
3 Replies

8. AIX

SFTP issue

Hi!! SFTP5.0 is not working thru automatically pushing files, but manual file transfer is happening fine... If anyone knows,Pls share the reason. Regards, Senthil (3 Replies)
Discussion started by: senthil_seera
3 Replies

9. Shell Programming and Scripting

problem with connecting sftp server(urgent please)

Hi all, I have command to connect gateway server iam in home directory/> ssh root@mrp-gateway root@mrp-gateway:/root> sftp -v msgGoogle@126.132.45.123 sftp/>dir upload --> folder sftp/upload/ls ------------- 8990.txt kittu.txt 8989.txt i have an requirement to print files list which... (2 Replies)
Discussion started by: kittusri9
2 Replies

10. Shell Programming and Scripting

SFTP to MVS system

Hi All, I have written a script that transfers(FTP) files from Unix system to MVS system. Below is the code for it. ftp -inv $HOST<<ftp_test quote site LRECL=200 quote site BLKSIZE=28000 mput SOURCE DEST ftp_test Here I need the help, if the above code can get... (3 Replies)
Discussion started by: rinku11
3 Replies
Login or Register to Ask a Question