02-12-2008
Quote:
Originally Posted by
ashish_panpalia
Hi
We had 3 server -hp112and hp146 here hp112 is production server and hp146 is staging server used for load.
when i am trying to run follwing command
rcp abc hp112:/dnbusr1/gbid/gbid02 it's trowing an error :-
remshd: Login incorrect.
But same command is working wise versa -
rcp abc hp146:/dnbusr1/gbid/gbid01
here user id and pwd are same for both server and remote login from hp146 to hp112 also work.
* visit the remote machine, look at the auth logs.
* rlogin directly and interactive (rather than rcp) and with verbose / debug args.
With the above you should be able to figure out if the remote home directory is missing, if the password is bad, if the user isn't there, if remote logins are disabled, if the account is disabled, if your out of blinker fluid, etc.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
get -ek s.Communicator.java The difference between the current date and the creation date of
the newest delta in the SCCS file is greater than 1 year.
Make sure that the system date is set correctly.
This message is only a warning. (co11)
14.3
... (0 Replies)
Discussion started by: Shivaprasad BS
0 Replies
2. UNIX for Dummies Questions & Answers
Hello sir,
Im using ubuntu distro.
We all know that ssh is used for password less entry.So, I have the public key and the IP address and the username thats it. Now to login it to the system either I should have password or a private key.Now I have the blacklist of private/public keys. But I dont... (1 Reply)
Discussion started by: nsharath
1 Replies
3. Shell Programming and Scripting
Hi,
This is in PERL.
I am trying to remotely login to a server to access and grep a log file.
This is what I have defined in my Hash
%servers = ('box1' => 'userid1', 'box2' => 'userid2',
'box3' => 'userid3', 'box4' => 'userid4');
%log = ('box1' => ... (1 Reply)
Discussion started by: nurani
1 Replies
4. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
5. Shell Programming and Scripting
Hello All,
I'm new to unix and i need the below favour from you.
I have list of 50 unix server. I need to login to all the server one by one and with the same user and password. I will declare the user name and password globally in the script.
for example :
servername- hyperV
user name... (4 Replies)
Discussion started by: Hari A
4 Replies
6. UNIX for Dummies Questions & Answers
How to use Mailx command in unix shell script, its throwing below error
#!/bin/ksh
let x=3
If ; then
mailx -s “ $x is greater than 2” example@gmail.com << EOF
This is the message body
EOF
fi
its throwing error as syntax error at EOF... (10 Replies)
Discussion started by: only4satish
10 Replies
7. Shell Programming and Scripting
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Discussion started by: jdilts
3 Replies
8. Shell Programming and Scripting
Dear all,
I would like to count the no;of word "INFORMATION" in a file called alt.lst and output to a unix variable INFORMATION.so to do this I wrote the below code
INFORMATION=echo 'INFORMATION' | tr -cs 'A-Za-z' '\n' < /app/tisq005/01/home/tisq005b/scripts/alt.lst | grep -c "INFORMATION"... (2 Replies)
Discussion started by: Kiransagar
2 Replies
9. Shell Programming and Scripting
Hi all,
I ahve a program which has to delete a line in a file... if i run the sed command through shell prompt it works fine. But if run it using code its throwing error. May i know where i am doing wrong.
the file has 3 lines
# cat /root/.ssh/known_hosts... (4 Replies)
Discussion started by: vivek d r
4 Replies
10. Shell Programming and Scripting
Hello Gurus,
I am writing one script at linux.
The logic is
There is a find command which will find some specific files daily and store at a variable
Then echo that variable .
Now when I am trying to read the variable by using for loop it is throwing error as below:cat: CKDT.dat: No such... (5 Replies)
Discussion started by: pokhraj_d
5 Replies
LEARN ABOUT CENTOS
bos_listhosts
BOS_LISTHOSTS(8) AFS Command Reference BOS_LISTHOSTS(8)
NAME
bos_listhosts - Displays the contents of the CellServDB file
SYNOPSIS
bos listhosts -server <machine name> [-cell <cell name>]
[-noauth] [-localauth] [-help]
bos listh -s <machine name> [-c <cell name>] [-n]
[-l] [-h]
bos getcell -server <machine name> [-cell <cell name>]
[-noauth] [-localauth] [-help]
bos getc -s <machine name> [-c <cell name>] [-n]
[-l] [-h]
DESCRIPTION
The bos listhosts command formats and displays the list of a cell's database server machines from the /etc/openafs/server/CellServDB file
on the server machine named by the -server argument.
To alter the list of machines, use the bos addhost and bos removehost commands.
OPTIONS
-server <machine name>
Indicates the server machine from which to display the /etc/openafs/server/CellServDB file. Identify the machine by IP address or its
host name (either fully-qualified or abbreviated unambiguously). For details, see bos(8).
For consistent performance in the cell, the output must be the same on every server machine. The bos addhost reference page explains
how to keep the machines synchronized.
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).
-noauth
Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
bos(8).
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
bos(8).
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The first line of the output names the cell to which the server machine belongs. Each of the following lines names a database server
machine for that cell.
The "Host" number assigned to each database server machine is for server-internal use only and is not the same as, nor necessarily related
to, the machine's IP address. The BOS Server assigned it as part of performing the bos addhost command.
EXAMPLES
The following command displays the database server machines listed in the /etc/openafs/server/CellServDB file on the machine "fs7.abc.com".
% bos listhosts fs7.abc.com
Cell name is abc.com
Host 1 is db1.abc.com
Host 2 is db2.abc.com
Host 3 is db3.abc.com
PRIVILEGE REQUIRED
None
SEE ALSO
CellServDB(5), KeyFile(5), bos(8), bos_addhost(8), bos_removehost(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BOS_LISTHOSTS(8)