|
Just in case your business partner does not know how or does not care to setup public key exchange with you, here's how to do it yourself: 1. Get the server's public key like described in my posting from September 30. 2. Place your public key on the remote server. this works for unix servers: I assume that your private key is in the .ssh/id_rsa.pub (inside your home directory) If it does not exist yet, create the .ssh subdirectory inside your default directory on the server. Upload your public key to this directory put .ssh/id_rsa.pub .ssh/id_rsa_as400.pub Append your public key to the authorized_keys file ssh remoteuser@remotehost "cat .ssh/id_rsa_as400.pub >> /.ssh/authorized_keys" If the authorized_keys file does not exist yet, you can skip a step and simply upload your public key like this put .ssh/id_rsa.pub .ssh/authorized_keys Shalom Carmel ---------------- www.hackingiseries.com ----- Original Message ----- From: Mike Cunningham To: midrange-l@xxxxxxxxxxxx ; shalom@xxxxxxxxxx Sent: Thursday, November 16, 2006 11:55 PM Subject: Re: sFTP question I think Jerry is trying to do the same thing I wanted to do but could not get it to work either. I needed to do an sFTP file transfer in unattended mode in the middle of the night and the company who I was sending data to used only sFTP but only with userid and passwords, not public keys. I needed to send the userid and password to the remote server just like I do FTP from the iSeries, using a script file. I ended up getting WsFTP from Ipswitch which has an sFTP implementation that let me define the userid and password in the a script. The PC it runs on has a drive map to the IFS and at 2:00 am kicks off an SFTP logon to the remote server, sends a userid and password, copys a file from the remote server to the IFS and then copys a file from the IFS to the remote server and disconnects. >>> shalom@xxxxxxxxxx 11/16/2006 3:42:16 PM >>> Hey Jerry, Almost all ssh clients supports user/password only in attended jobs. If you try to create a client ssh session from iseries to a ssh server, and if you do not provide a key, then you will be prompted for a password. The same happends when you connect to an iseries ssh server. So, what exactly did you try to do and failed? Shalom Carmel ---------------- www.hackingiseries.com ----- Original Message ----- > message: 7 > date: Thu, 16 Nov 2006 09:12:02 -0800 > from: Jerry Draper <midrangel@xxxxxxxxxxxxx> > subject: sFTP question > > I have installed the sFTP LIC provided by IBM: > > 5722SS1, option 33 - OS/400 - Portable App Solutions Environment > 5733SC1 option 1 - OpenSSH, OpenSSL, zlib > > I have reviewed posts from midrange-l and the redbook. > > Help me out here. > > It appears that this implementation of SSH does not support passing a > userid and password and only supports the public/private key exchange > system. > > Jerry
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.