Sponsored Content
Operating Systems AIX Setup Window server to accept AIX SFTP client Post 302326433 by shockneck on Thursday 18th of June 2009 02:35:02 AM
Old 06-18-2009
Quote:
Originally Posted by kwliew999
[...]the command I used to generate the key for AIX or Wintel are the same.
ssh-keygen -t rsa[...]
This way you created an SSH Version 2 key. On one debug line the server complains that it cannot detect an SSH Version 1 key. Hence you could try next to create such a key with
Code:
ssh-keygen -t rsa1

Quote:
Originally Posted by kwliew999
Then I just use scp to move id_rsa.pub to AIX server and use cat command to change it to authorized_keys.
scp /home/xxx/.ssh/id_rsa.pub xxx@AIXSVR:/home/xxx/.ssh/id_rsa.pub.AAA
ssh xxx@AIXSVR
cd /home/xxx/.ssh
cat id_rsa.pub.AAA >> authorized_keys
For Wintel, I use FTP to download the id_rsa.pub to my PC and then FTP the file to the Wintel server and rename it to authorized_keys.
That procedure should be O.K. Just make sure you are using binary mode for key transfer.
 

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_rmdir_ex(3)					  libssh2 manual					  libssh2_sftp_rmdir_ex(3)

NAME
libssh2_sftp_rmdir_ex - remove an SFTP directory SYNOPSIS
#include <libssh2.h> #include <libssh2_sftp.h> int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path, unsigned int path_len); DESCRIPTION
Remove a directory from the remote file system. sftp - SFTP instance as returned by libssh2_sftp_init(3) sourcefile - Full path of the existing directory to remove. sourcefile_len - Length of the full path of the existing directory to remove. RETURN VALUE
Return 0 on success 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_init(3) libssh2 0.15 1 Jun 2007 libssh2_sftp_rmdir_ex(3)
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy