LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 12-26-2016, 08:13 AM   #1
czumelzu
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Rep: Reputation: Disabled
SSHPASS for AIX 6.1


Hi guys,

I need to install sshpass in my AIX6.1 server.
I would like to know how can I find it to install it in my server and do some tests.
Can anyone give me a hand? I've been diving in the internet and I can't find the information.
Thanks in advance.
 
Old 12-26-2016, 11:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by czumelzu View Post
Hi guys,
I need to install sshpass in my AIX6.1 server. I would like to know how can I find it to install it in my server and do some tests. Can anyone give me a hand? I've been diving in the internet and I can't find the information.
Did you look at their website?
https://sourceforge.net/projects/sshpass/

The source code is there, which includes installation instructions within the .tar.gz file. What are you stuck on? And why can't you just use the standard ssh keyswap, and eliminate the need for any passwords/utilities-to-deal-with-passwords in your script?
 
Old 12-26-2016, 12:01 PM   #3
czumelzu
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi TB0ne,

Actually, after I post the thread I found that same site.
Well, this is the thing, I need to connect to a remote SFTP server in which they only support SFTP, they dont accept SSH direct, so that is why the only option is to use SSHPASS, because I need that a bash do the connection.
Thanks for the clarification about the source of the application.

Regards,

czumelzu
 
Old 12-26-2016, 12:24 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by czumelzu View Post
Hi TB0ne,
Actually, after I post the thread I found that same site. Well, this is the thing, I need to connect to a remote SFTP server in which they only support SFTP, they dont accept SSH direct, so that is why the only option is to use SSHPASS, because I need that a bash do the connection. Thanks for the clarification about the source of the application.
No worries, but you can still easily do a key swap and use sftp. SSH/SFTP/SCP are all using the underlying SSH keys/protocol/port. These instructions:
http://www.tecmint.com/ssh-passwordl...-5-easy-steps/

...give you a nice how-to. Even if you don't have admin rights remotely, you can send your key via email to the remote administrator, and have them insert the key into the .ssh directory for you. SSHPASS isn't the 'standard' way to script for SSH/SFTP/SCP, but is a workaround.

You can even use an expect script, which will 'answer' the prompting for user/password.
http://www.perzl.org/aix/index.php?n=Main.Expect

Last edited by TB0ne; 12-26-2016 at 12:25 PM.
 
Old 12-27-2016, 11:53 PM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
I don't know this program, but I can assure you that OpenSSH contains sftp functionality (both server and client), also it is able to generate and use ssh-keys.

It might be already installed by the vendor, even if not the latest version (say 5.x or 6.x instead of the recent 7.4p1), that's why I always compile it from source.

Edit: is this 'sshpass' a shortcut to avoid using ssh-keys? Don't take it. If you cannot create file $HOME/.ssh/authorized_keys on the remote side, ask the administrator of that computer to create it.

Last edited by NevemTeve; 12-28-2016 at 12:35 AM.
 
Old 01-22-2017, 03:56 AM   #6
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 123

Rep: Reputation: 33
If you would be interested in trying OpenSSH-7.4 for AIX (copies existing keys and creates missing keys in /var/ssh/etc - so it can be installed side-by-side with IBM packaging of OpenSSH. Note: some old clients may not work with OpenSSH-7.4.

Curious: see http://www.aixtools.net/index.php/OpenSSH

And, if you are maybe interested in ftps (secure ftp, initiated as client with ftp -s) take a look at http://www.rootvg.net/content/view/791/88/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sshpass dont make the command running postcd Linux - General 3 05-16-2014 08:51 AM
[SOLVED] scp using sshpass har_85 Programming 5 03-04-2014 05:38 AM
LXer: sshpass command : Non-interactive Password Authentication with SSH LXer Syndicated Linux News 0 08-27-2013 03:40 PM
sshpass issue in executing commands in sftp Mode. pradeepdee6 Linux - Newbie 7 04-17-2013 09:18 AM
LXer: sshpass - Non-interactive ssh password authentication LXer Syndicated Linux News 0 05-04-2008 04:50 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration