when i tried using your script provided by you.. as below
Code:
for ip_addr in $(cat ip_abc1); do
ssh ${ip_addr} <<EOD
ssh -p 8101 karaf@${ip_addr}
$pwd
features:list
EOD
done
It gives me the below error on my logs.
Code:
./<my_script>: line 26: karaf: command not found
Pseudo-terminal will not be allocated because stdin is not a terminal.
Pseudo-terminal will not be allocated because stdin is not a terminal.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (password).
-bash: line 3: features:list: command not found
Note:Password is common on all the 5 ip address. it should auto input the password.
Kindly advise.
Hi Corona688,
Thanks for the auto-ssh password link.. between i have limited access to those hence i am unable to make any changes on those files mentioned..
The password here is generic for all the 5 ip address.
Last edited by Franklin52; 09-27-2014 at 06:26 PM..
Reason: Fixed code tags
hi everybody,
im kinda a new to scripting....
i have attached an image in this post...
my goal is to extract data from the remote servers (server1,2,3 as in figure)
to the server residing locally....
the criterias are:
* I should not pass the password across the remote servers.
*... (1 Reply)
Hi,
I have web server (apache) installed in server-1 and i want to view the web pages from diferent servers also while the web server is running only in one server ....(all the servers are connected to office LAN)
right now all the servers have apache running......and CPU utilzation is at its... (2 Replies)
Hi all,
I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too).
//----------------------------------------------------------------//
# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/
Using... (1 Reply)
I am trying to setup an FTP server in a Fedora Core 3 machine through the command line interface and not KDE.
I think I am successful in getting the ftp service running, as when I do an ftp 127.0.0.1, I am able to log in using any one the user accounts I have created on this machine and browse... (8 Replies)
Hi,
Im creating a script that is supposed to run commands on remote server using sftp.
My script is as below:
#!/bin/ksh
sftp remote_server
mypassword
cd /u08/mydir/allfiles
mget *
..
But this is what I got when I runned the script:
Connecting to remote server...... (3 Replies)
server is at remote site; server is up. I can access it through console. but I cannot access it through ssh. I have restarted SSH already and even do ifconfig ce0 down and up
still not successful ... any comment? (2 Replies)
Good evening
I have a VPS Server
Processor OS: centos-5-x86
I could not log on to the SSH Server
This image from the panel WHM
Main >> Server Status >> Service Status
https://www.unix.com/attachment.php?attachmentid=1666&stc=1&d=1286598999
This copy of the program PuTTY
... (4 Replies)
Hi!
I came to know about SSH Tunneling to bypass the Firewall.
I will have to setup a free access SSH server to tunnel data access through PUTTY or OpenSSH.
The problem is that I don't know about any free access servers.
So, can anyone of you guide me for that, for any type of help? (1 Reply)
I need to do some remote administration to an access point that is sitting behind a firewall that only has ssh enable from the outside but http/https from the inside. So to be a bit clearer:
remote(outside firewall) ssh --> ssh-server(internal) --> access point(http/https)
Ultimately... (3 Replies)
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
LEARN ABOUT HPUX
ftphosts
ftphosts(4) Kernel Interfaces Manual ftphosts(4)NAME
ftphosts - ftpd individual user host access file
SYNOPSIS DESCRIPTION
The file is used to allow or deny access to certain accounts from various hosts.
Access Capabilities
The formats to allow and deny access are described in this section.
addrglob [ addrglob... ]
Only allow host(s) matching addrglob to log in as username. addrglob is a globbed domain name or a globbed numeric address.
addrglob [ addrglob ... ]
Always deny host(s) matching addrglob to log in as username. addrglob is a globbed domain name or a globbed numeric address.
A username of or specifies the anonymous user.
The addrglob can also be specified as address/cidr or address:netmask. For example:
or
Specifying Both allow and deny Rules
To allow a user to login from anywhere except the listed hosts, both allow and deny rules are required.
The following example denies the user from logging in from the host but allows login from all other hosts:
EXAMPLES
Allow the user, to login from the host named and from all hosts with numeric addresses starting with
Deny (do not allow) the user, to login from the host named and from all hosts with numeric addresses starting with
Allow the user, to login from the host named
FILES AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO ftpd(1M), ftpaccess(4), ftpconversions(4), ftpshut(1).
ftphosts(4)