02-28-2008
You could use 'expect' and a wrapper script to do it I guess.
Edit: Ah, I see you've already done this, I really should read properly
Last edited by Smiling Dragon; 02-28-2008 at 10:38 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I combine something like:
localserver# ssh remoteserver
remoteserver# find blah blah blah
into a one liner that would ssh to the remote server and run the find command, so I could put it in a script to automatically go out and run things on remote servers with out needed user... (2 Replies)
Discussion started by: LordJezo
2 Replies
2. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
3. Shell Programming and Scripting
Dear All,
I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually...
In short I dont want to connect to a diff server via ftp interactively.
Any suggestion...looking... (8 Replies)
Discussion started by: Pratik4891
8 Replies
4. Shell Programming and Scripting
hi:
how can i use ssh with password in the command line . (4 Replies)
Discussion started by: rainboisterous
4 Replies
5. Shell Programming and Scripting
I have this command that i am calling from php (exec()):
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12
and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:
I need script that will fill the password... (3 Replies)
Discussion started by: rockyada
3 Replies
6. Shell Programming and Scripting
Hi, I'm writing a script,
in the script I need to use tcpdump to capture some packets
however it needs root priviledge
my computer is configured by school and I have no real root priviledge
so I can't use sudo on my computer,like
Code:
sudo tcpdump ......
I have to use a limited... (1 Reply)
Discussion started by: esolve
1 Replies
7. Shell Programming and Scripting
Hi Experts,
I have specific requirement where I want to pass the password with the ssh username@hostname command .
I dont want to use RSA public and private keys also. Because that will be on production server and no one wants to give access like that.
Second thing it is production... (14 Replies)
Discussion started by: sharsour
14 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have followed the below commands for key generation and ssh from one server to another with user mqm
cd /var/mqm/.ssh
mqm@A:~> ssh-keygen -t rsa
<public key creation>
mqm@A:~> ssh mqm@B mkdir -p .ssh
mqm@B's password: <entered_password>
mqm@A:~> cat /var/mqm/.ssh/id_rsa.pub | ssh... (4 Replies)
Discussion started by: Anusha M
4 Replies
9. Shell Programming and Scripting
Using useradd abc --password password (5 Replies)
Discussion started by: Jagruti Rml
5 Replies
10. Shell Programming and Scripting
john-test:/root> ssh -q chicago-ser uname;date
Linux
Fri Oct 13 16:41:11 GMT 2017
How I can print on the same line like this :
Linux Fri Oct 13 16:41:11 GMT 2017 (2 Replies)
Discussion started by: jhonnyrip
2 Replies
LEARN ABOUT REDHAT
ipfwadm-wrapper
IPFWADM-WRAPPER(8) IPFWADM-WRAPPER(8)
NAME
ipfwadm-wrapper - IP firewall administration
SYNOPSIS
ipfwadm-wrapper -A command parameters [options]
ipfwadm-wrapper -I command parameters [options]
ipfwadm-wrapper -O command parameters [options]
ipfwadm-wrapper -F command parameters [options]
ipfwadm-wrapper -M [ -l | -s ] [options]
DESCRIPTION
Ipfwadm-wrapper emulates the behaviour of ipfwadm. You can use this wrapper to use your old ipfwadm firewall rules with ipchains. See
ipfwadm(8) for more details.
If the kernel does not support ipchains (eg. a 2.0 kernel), and the file /sbin/ipfwadm.real exists and is executable, then it will be exe-
cuted with the arguments given to ipfwadm-wrapper. This allows simple dual-booting of 2.2 and 2.0 kernels with the same firewalling
scripts: simply move ipfwadm to ipfwadm.real, and ipfwadm-wrapper to ipfwadm.
SEE ALSO
ipfwadm(8), ipchains(8)
BUGS
The script isn't clever at parsing command line arguments. You must use separate arguments, rather than run them together. For example,
`ipfwadm -Mle' becomes `ipfwadm-wrapper -M -l -e'.
Fragment accounting rules are not translated correctly; they will account packets with source port 65535.
Due to new kernel restrictions, you must be root even to list rules for 2.2 kernels.
If /usr is mounted from NFS, you will not be able to use ipfwadm-wrapper before /usr is mounted.
AUTHOR
Paul ``Rusty'' Russell <ipchains@rustcorp.com>
February 8, 1998 IPFWADM-WRAPPER(8)