07-03-2013
As far as i know the whole idea of SSH is dont use or automate password to it. Thats whythey have SSHPASS and except tools to achieve this.
10 More Discussions You Might Find Interesting
1. Solaris
On Solaris 5.9, is there any way to pass parameter(s), via SSH, to a command defined in the remote host's authorized_keys file?
We have a menu that uses SSH to control some apps on our various hosts. I've been tasked with enhancing it and making it more secure.
So far, the local host menu... (2 Replies)
Discussion started by: PabloCruise77
2 Replies
2. AIX
I'm trying to run a command over ssh to AIX 5.2, something like:
ssh machine ls
but it just hangs. I can ssh into the machine and run a command, but can't pass it like above. Is there a security setting that disables this by default? If so, how do I change it?
Thanks! (8 Replies)
Discussion started by: hansnueski
8 Replies
3. Shell Programming and Scripting
Hi,
I wan to pass arguments to remote script in Unix .
For that I'm using ssh
PFB the code I'm using:
ssh -t -l osdac 10.81.33.51 "cd /appl/OSD/LOGS/flstr010/test.sh "$1" "$2""
Problem is I'm not able to pass second argument .
Can anyone plz help me in resolving this. (5 Replies)
Discussion started by: suchitasaner27
5 Replies
4. Shell Programming and Scripting
I have a requirement, I need to run a command at remote system using a ssh. Is there any way we can pass the username and password in shell script to the ssh command as we did it in one of the shell script for FTP.
ftp -n $i <<!EOF >>
user Username $PASSWD
cd /home/scripts
... (5 Replies)
Discussion started by: Muktesh
5 Replies
5. Shell Programming and Scripting
ssh/sftp login by passing password , is it possible.Don't want to expect. (1 Reply)
Discussion started by: dinjo_jo
1 Replies
6. Shell Programming and Scripting
Hi Everyone,
I'm trying to run scp as a one-line command, as of right now, it prompts me for the user's password to the remote machine. Does anyone know if there is an option to pass the password parameter into the scp command on the same line so it doesn't prompt me? Thanks! (1 Reply)
Discussion started by: twhitmarsh
1 Replies
7. Shell Programming and Scripting
Hi all,
I have the expect binaries in our boxes..
I want to pass a passwd to a command automatically without manual intervention using "/<path_of_expect>/expect/<version>/bin/autopasswd"
The below command will ask passwd in my script
cleartool rmtag -all <vob_tag>
#Some... (4 Replies)
Discussion started by: raghu.iv85
4 Replies
8. Shell Programming and Scripting
Used the script posted on forum - unix.com/shell-programming-scripting/21597-script-change-passwords-same-user-multiple-servers.html but the last question posted on this seems to be still unanswered, tried different things with no success, can someone help giving an way to pass the password via... (5 Replies)
Discussion started by: sapadmin
5 Replies
9. Shell Programming and Scripting
How can I pass password in SSH command without using expect in a shell program.
I don't have expect installed on my Solaris server.
#!/bin/bash
ssh user@hotname (how to supply pass in script?:wall:)
Experts please help its very urgent.
Shrawan Kumar Sahu (4 Replies)
Discussion started by: ss135r
4 Replies
10. Shell Programming and Scripting
I want to do following 2 commands via script:
1) eval `ssh-agent`2) ssh-add /export/home/sufuser/.ssh/id_rsa When asked for passphrase enter "passwordpassword1234
but whenever I run the script it stucks after "ssh-add /export/home/sufuser/.ssh/id_rsa" command and asks fro... (4 Replies)
Discussion started by: yogeshpawar
4 Replies
LEARN ABOUT DEBIAN
checkapoppw
checkapoppw(8) System Manager's Manual checkapoppw(8)
NAME
checkapoppw - checks APOP password against the file ~/Maildir/.password
SYNOPSIS
checkapoppw prog
DESCRIPTION
checkapoppw reads descriptor 3 through end of file and then closes descriptor 3. There must be at most 512 bytes of data before end of
file.
The information supplied on descriptor 3 is a login name terminated by , a password terminated by , a timestamp terminated by , and
possibly more data. There are no other restrictions on the form of the login name, password, and timestamp.
If the password is unacceptable, checkapoppw exits 1. If checkapoppw is misused, it may instead exit 2. If there is a temporary problem
checking the password, checkapoppw exits 111.
If the password is acceptable, checkapoppw runs prog.
prog consists of one or more arguments.
Compatible tools
There are other tools that offer the same interface as checkapoppw
Note that these tools do not follow the getopt interface. Optional features are controlled through (1) the tool name and (2) environment
variables.
The password database
checkapoppw checks the APOP password against the content of the file Maildir/.password (not encrypted) in the user's home directory corre-
sponding to the login name.
Maildir may be overidden through the environment variable $MAILDIR.
Process-state changes
Before invoking prog, checkapoppw sets up $USER, $HOME, $SHELL, its supplementary groups, its gid, its uid, and its working directory.
FILES
~/Maildir/.password
SEE ALSO
checkpw(8), qmail-popup(8), qmail-pop3d(8)
AUTHOR
This manual page was written by Gerrit Pape <pape@smarden.org>, for the Debian GNU/Linux system.
checkapoppw(8)