07-05-2012
It's really helpful. I need to get used to this. Thanks a lot.
Last edited by muffle; 07-10-2012 at 01:34 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode:
warning: You have no controlling tty. Cannot read confirmation.^M
warning: Authentication failed.^M
Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies
2. UNIX for Advanced & Expert Users
Hi All,
I get the following error message when i try to ssh to a node
ssh_exchange_identification: Connection closed by remote host
this is the output when i run in verbose mode
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data... (1 Reply)
Discussion started by: raman1605
1 Replies
3. Shell Programming and Scripting
Hi
Please help me with the following problem with my script.
The following block of code is not repeating in the while loop and exiting after searching for first message.
input_file
==========
host001-01
host001-02
2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies
4. Shell Programming and Scripting
Hi :)
how can I use here doc to use ssh?
I am facing a problem with the below script:
#!/bin/bash
ssh hosein@localhost << *
123456
*
"123456" is my password
Thanks (2 Replies)
Discussion started by: htabesh
2 Replies
5. UNIX for Dummies Questions & Answers
Have a sudo statement inside of a here document. It prompts me for a password, but doesnt wait for me to enter my password. Is there a way I can use the command without sudo or anyway that I can enter the password correctly?
Eg :
while read remotehost
do
ssh -t $2@$remotehost ... (0 Replies)
Discussion started by: mnanavati
0 Replies
6. Shell Programming and Scripting
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Discussion started by: mnanavati
6 Replies
7. Programming
I'm trying to use Here documents to pass several commands to a remote server over SSH. However I'm having problems. The code is as follows:
nohup ssh $i_hostname exec /usr/bin/ksh -s << EOF >> $AS_STOPSAP_LOG &
echo $i_instname;
ps -ef | grep name | grep ${i_instname} |grep -v grep
... (4 Replies)
Discussion started by: doonan_79
4 Replies
8. Programming
I'm trying to write a foreground (password prompt) ssh command, passing in a here doc - any idea where I'm going wrong?
ssh <user>@<targetserver> /usr/seos/bin/sesu - <targuser> -c /usr/bin/ksh "param1" << EOF
date
echo ${1}
EOF
Tells me "Invalid option param1". However a simple date... (8 Replies)
Discussion started by: doonan_79
8 Replies
9. Solaris
Hi guys.
I am using VirtualBox to run Solaris on my host (Windows 7) .
I have setup networking and am able to ping from Solaris to Windows 7 and vice versa.
Now I want to be able to SSH from Windows 7 to my guest (Solaris)
On solaris , the output to
ps -ef | grep ssh shows:
... (8 Replies)
Discussion started by: Junaid Subhani
8 Replies
10. Shell Programming and Scripting
System is Oracle Linux 6 (derivative of RHEL)
Given this script (copied from vi with line numbering for reference)
1 #!/bin/sh
2 ORAENV_ASK=NO
3 echo "*****************************************************"
4 echo "** Stop all databases and listener"
5 echo... (6 Replies)
Discussion started by: edstevens
6 Replies
LEARN ABOUT DEBIAN
jablicator
JABLICATOR(1) General Commands Manual JABLICATOR(1)
NAME
jablicator - Share package collection choice across machines
SYNOPSIS
jablicator [--root <path>]
DESCRIPTION
jablicator generates an "apt-get"-able package. The package itself is empty. However it has a dependency for every non-required Debian
package that is on the machine. This program will create and populate two directories dists and pool in your working directory. You can
then move them to a web accessible location.
This utility is designed to reduce software distribution and maintenance costs by reducing redundant system administration. For example, I
have spent a lot of time finding and vetting image processing software from Debian's large package collection. With this utility, my image
processing colleague down the hall can easily benefit from the fruit of my labor.
There are many replication techniques in Debian. This one has the advantage of using the apt and dpkg infrastructure. A disadvantage is the
possibility of packages changing out from under you in the Debian distribution (especially in testing or unstable). That means that jabli-
cator output can grow stale over time if it is not regenerated.
SECURITY
The packages produced by this program contain a lot of information, including a list of the Debian packages installed on the machine and a
listing of apt-get sources. Some system administrators consider sharing such information a security risk.
FILES
/etc/apt/sources.list
OPTIONS
--root <path>
Being able to pull in package selections from another install can be helpful, in the cases of a non-functional system, or reading
from a hard drive install under Knoppix. In other words, source from a root filesystem that is not mounted at the root. This is a
rare situation and most users should not use this option.
SEE ALSO
dpkg(8) apt-get(8).
AUTHOR
Jeff Breidenbach <jab@debian.org>.
THANKS
Tom Parks, Cliff Weinstein, Burkhard Perkens-Golomb.
Debian/GNU Linux September 2001 JABLICATOR(1)