AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
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.
...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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.