Sponsored Content
Operating Systems AIX Setup Window server to accept AIX SFTP client Post 302326137 by shockneck on Wednesday 17th of June 2009 07:16:53 AM
Old 06-17-2009
Quote:
Originally Posted by kwliew999
[...]I have tested successfully from AIX to AIX server and the debug screen has also display the same error as you quoted .

$ ssh -vvv -i /home/xxx/.ssh/id_rsa xxx@AIXSVR
OpenSSH_5.0p1, OpenSSL 0.9.8h 28 May 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): 0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
0509-026 System error: A file or directory in the path name does not exist.

debug1: Error loading Kerberos, disabling Kerberos auth.
debug2: ssh_connect: needpriv 0
debug1: Connecting to WINSVR [1.2.3.4] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/xxx/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
[...]
I am sorry, but what you write and what you post as debug output does not seem to fit together. I thought you'd connect from AIX to Windows but you seem to connect to an AIX server with the name WINSRV. Could it be that the second debug output is identical to the first because you connect to the very same server but with two different names/aliases?

Generally there should be no problem when connecting to an AIX server with an SSH key that also was created on an AIX server with about the same version of SSH. Furthermore I don't remember a "---- Begin" or "---- End" line in authorised_keys file. AFAIK an SSH key in this file consists of one line of ASCII chars with key type in front, the user@server name at end and in the middle the key itself with no linebreaks, no spaces, no tabs. Could you tell us which command you used to create the key and how you transferred what to the Windows PC?
 

10 More Discussions You Might Find Interesting

1. AIX

NIM server setup (AIX 5.3)

Hi, I'a a new member here. My company just bought p570 with 8 LPAR (previously we have p650 with 4 LPAR). Did anyone have procedure how to setup NIM server (NIM LPAR) and how to install other new LPAR to use the NIM server (as client). Appreciate your help and thank you very much. Rgds, David (0 Replies)
Discussion started by: dshg
0 Replies

2. AIX

Print server setup on AIX

Hi, I'm very new to AIX, I have to setup a D-Link print server with HP Laserjet 1300 printer on AIX, any body can guide me thru simple steps to acheive this, like how to install print server, driver and then which services i have to restart after adding the print server all this kind of stuff. ... (1 Reply)
Discussion started by: patras
1 Replies

3. AIX

How to set AIX server for x-window?

Hi, I register the ip address into "XMD broadcast" in xconfig of xmanager, then use Xmanager to connect to AIX server, But I can not connect to it. How to set AIX server to let it can be connected? Thanks (2 Replies)
Discussion started by: aixabc
2 Replies

4. AIX

How to setup Thinclient server and client in AIX

Hi, I want to setup Thinclient server-clinet in AIX. How I can do that? In linux I do it with LTSP. Can LTSP works with AIX? Thanks Neelesh (2 Replies)
Discussion started by: neel.gurjar
2 Replies

5. UNIX for Dummies Questions & Answers

scp or sftp to Window server

Dear Unix Gurus, I have a question to confirm before I proceed to script my program. I'm currently running on IBM AIX Ver 5.3. I just like to know if it's compatible to use scp or sftp between AIX and Wintel server? I'm trying to scp or sftp a file from AIX to Window server and I was... (1 Reply)
Discussion started by: lweegp
1 Replies

6. Shell Programming and Scripting

pull files from window server to aix box

Hi All, I have a new requirment where i have to pull files from windows server to aix box. I am using scp command to pull a files. command is working fine but it is asking password for everytime i m running this command.I want to automate this so that it will not ask any password. ... (1 Reply)
Discussion started by: prasson_ibm
1 Replies

7. AIX

can not mount from aix client to linux nfs server

Hi, I am trying to mount a nfs folder from AIX client to Linux NFS Server, but I got the following error: # mount 128.127.11.121:/aix /to_be_del mount: 1831-010 server 128.127.11.121 not responding: RPC: 1832-018 Port mapper failure - RPC: 1832-008 Timed out mount: retrying... (1 Reply)
Discussion started by: victorcheung
1 Replies

8. UNIX for Dummies Questions & Answers

SFTP files from Unix to Window Server

I have a requirement, where in we need to SFTP files from the Unix box to the Windows server. Since we are putting files...Where would we place the public/private keys from the Unix servers?? Any default path as such??? How would the sftp happen from Unix to Windows...Please help... ... (1 Reply)
Discussion started by: saggiboy10
1 Replies

9. Shell Programming and Scripting

Sftp script for dev server to client server

hi, i am new to unix, cuold u send some sftp acripts to send files to dev server to clint server, (1 Reply)
Discussion started by: Koti.annam
1 Replies

10. UNIX for Beginners Questions & Answers

How to sftp fron UNIX to window server using expect?

HI I am using expect to transfer the file from unix system to windows server. however it is not taking the password. same I tried without script also but still it is not accepting the password. when I tried with winscp tool it accepting the password. I am not sure where I am doing wrong ... (4 Replies)
Discussion started by: scriptor
4 Replies
libssh2_sftp_read(3)						  libssh2 manual					      libssh2_sftp_read(3)

NAME
libssh2_sftp_read - read data from an SFTP handle SYNOPSIS
#include <libssh2.h> #include <libssh2_sftp.h> ssize_t libssh2_sftp_read(LIBSSH2_SFTP_HANDLE *handle, char *buffer, size_t buffer_maxlen); DESCRIPTION
handle is the SFTP File Handle as returned by libssh2_sftp_open_ex(3) buffer is a pointer to a pre-allocated buffer of at least buffer_maxlen bytes to read data into. Reads a block of data from an LIBSSH2_SFTP_HANDLE. This method is modelled after the POSIX read(2) function and uses the same calling semantics. libssh2_sftp_read(3) will attempt to read as much as possible however it may not fill all of buffer if the file pointer reaches the end or if further reads would cause the socket to block. RETURN VALUE
Number of bytes actually populated into buffer, or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SOCKET_TIMEOUT - LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be returned by the server. SEE ALSO
libssh2_sftp_open_ex(3) libssh2_sftp_read(3) libssh2 0.15 1 Jun 2007 libssh2_sftp_read(3)
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy