Sponsored Content
Top Forums Shell Programming and Scripting Multi server access through remote server using ssh Post 302919048 by whizkidash on Saturday 27th of September 2014 06:15:14 AM
Old 09-27-2014
Hi blackrageous,

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
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

remote server access

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)
Discussion started by: mercuryshipzz
1 Replies

2. UNIX for Advanced & Expert Users

remote web server access (apache)

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)
Discussion started by: aditya.ece1985
2 Replies

3. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

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)
Discussion started by: gothama
1 Replies

4. UNIX for Dummies Questions & Answers

Remote Access to FTP server not working

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)
Discussion started by: cooljumbo2k8
8 Replies

5. Shell Programming and Scripting

Can a script runned in local server access remote server?

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)
Discussion started by: luna_soleil
3 Replies

6. UNIX for Dummies Questions & Answers

server is up but cannot access through ssh

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)
Discussion started by: uuontario
2 Replies

7. OS X (Apple)

Access the SSH of the server

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)
Discussion started by: hamed
4 Replies

8. UNIX for Advanced & Expert Users

Server access for SSH Tunneling!

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)
Discussion started by: nixhead
1 Replies

9. IP Networking

Ssh to remote access point http server

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)
Discussion started by: metallica1973
3 Replies

10. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

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
ATMARP(8)						       Maintenance Commands							 ATMARP(8)

NAME
atmarp - administer classical IP over ATM connections SYNOPSIS
atmarp -a atmarp -c [[atm]number] atmarp -q ip_addr [qos qos] [sndbuf bytes] atmarp -s ip_addr [itf.]vpi.vci [qos qos] [sndbuf bytes] [temp] [pub] [null] atmarp -s ip_addr atm_addr [qos qos] [sndbuf bytes] [temp] [pub] [arpsrv] atmarp -d ip_addr [arpsrv] atmarp -V DESCRIPTION
atmarp is used to maintain the ATMARP table of the ATMARP demon. The table can be listed, new PVC and SVC entries can be added, and exist- ing entries can be deleted. In addition to that, atmarp is also used to create new IP over ATM interfaces. Note that the kernel has its own ATMARP table containing only entries for destinations to which a connection exists. The table of atmarpd can also contain currently unused entries. OPTIONS
-a list the current ATMARP table. -c create the specified IP interface. If the interface number is omitted, the operating system assigns the next free number and atmarp prints the resulting interface name (e.g. `atm0') on standard output. -q sets the QOS and the send buffer size to use as the default for all VCs generated for that IP network (ip_addr must be the address of the network). -s set up a PVC or create an SVC entry. The following options are recognized: qos qos uses the specified quality of service (see qos(7) for the syntax). UBR at link speed is used by default. sndbuf bytes tries to set the send buffer to the specified number of bytes. A system default value is used if sndbuf is not specified. temp does not mark the entry as permanent, i.e. it will time out and then be removed. pub publishes the entry (only relevant for ATMARP server). ATMARP requests for entries not marked for publishing yield an ATMARP_NAK response. null uses NULL encapsulation instead of LLC/SNAP encapsulation on the PVC. This option is not available for SVCs, because the LLC/SNAP header is required to identify ATMARP packets. null also implies that the entry is permanent. arpsrv identifies the entry pointing to the ATMARP server. Note that the node acting as the ATMARP server must have no ATMARP server entry in its ATMARP table. -d delete the specified ARP entry. In order to prevent accidental deletion of the ATMARP server entry, the arpsrv flag must be speci- fied when deleting it. -V print the version number of atmarp on standard output and exit. FILES
/var/run/atmarpd.table ATMARP table AUTHOR
Werner Almesberger, EPFL ICA <Werner.Almesberger@epfl.ch> SEE ALSO
atmarpd(8), clip(8), qos(7) Linux April 26, 2000 ATMARP(8)
All times are GMT -4. The time now is 08:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy