problem with partial names in ssh


 
Thread Tools Search this Thread
Operating Systems Linux problem with partial names in ssh
# 1  
Old 08-29-2012
problem with partial names in ssh

I'm having some problems with fedora's ssh versus redhat enterprise 6's ssh. With redhat I can ssh using partial names such as "ssh b" while in fedora I have to type out a full name like "ssh b.dept.university.edu".

If I ssh from a fedora to a redhat box partial names work.
If I ssh from a redhat to a fedora box partial names work.
If I ssh from a redhat to a redhat box partial names work.

But If I ssh from a fedora to a fedora box partial names do not work.

Fedora is using OpenSSH 5.9p1
Redhat is using OpenSSH 5.3p1

Any idea what setting might be causing this?


Thanks!
# 2  
Old 08-29-2012
Check what's in /etc/hosts on the respective machines.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem with shell script while spaces encountered in directory names

Hi, I am having issues with the jar -tf command when I put in the shell script. The command runs fine from the command line as shown below. # jar -tf "./VirtualBox Dropped Files/2016-04-17T20:58:49.129139000Z/hive-exec-0.8.1.jar" But when I put in a shell script(shown below) and the... (10 Replies)
Discussion started by: vinoo128
10 Replies

2. Shell Programming and Scripting

Problem with SSH

Hello, i have 10 machines, machine A execute this script: This is my script: nb_lignes=`wc -l $1 | cut -d " " -f1` for i in $(seq $(($nb_lignes - 1)) ) do machine=`head $1 -n $i | tail -1` machine1=`head $1 -n $nb_lignes | tail -1` ssh root@$machine -x " scp /home/file.txt... (7 Replies)
Discussion started by: chercheur857
7 Replies

3. Solaris

ssh problem

Hi Guys, when I try to login to one of my sun server (sparc) from within an open putty session on another server I get this message: bash-3.2$ ssh 10.0.0.10 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (1 Reply)
Discussion started by: cjashu
1 Replies

4. UNIX for Dummies Questions & Answers

Problem in ssh

Hi whenever i try to do any ssh related activity like. ssh <servername>, scp some files to a server i get =true I have checked modt message but nothing is there. I can able to get the ssh session but for scp, =true prompt get displayed but nothing happens. For example: # scp file1.txt... (5 Replies)
Discussion started by: pinga123
5 Replies

5. Shell Programming and Scripting

AWK - Print partial line/partial field

Hello, this is probably a simple request but I've been toying with it for a while. I have a large list of devices and commands that were run with a script, now I have lines such as: a-router-hostname-C#show ver I want to print everything up to (and excluding) the # and everything after it... (3 Replies)
Discussion started by: ippy98
3 Replies

6. Shell Programming and Scripting

Problem with File Names under tcsh loop

Hello, I have a question regarding file naming under a loop in tcsh. I have the following code: #!/bin/tcsh foreach file (test/ProteinDirectory/*) # The * is a bunch of ProteinFile1, ProteinFile2, ProteinFile3, etc. sh /bioinfo/home/dgendoo/THREADER/pGenThreader.sh $file $file ... (4 Replies)
Discussion started by: InfoSeeker
4 Replies

7. Shell Programming and Scripting

ssh script problem problem

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

8. UNIX for Advanced & Expert Users

Problem with ssh

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

9. Shell Programming and Scripting

SED - editing file names (End of line problem?)

For lists in sed, to say what to replace, is this correct: I am hoping that this would recognise that either a "." is present, or that the substitution happens at the end of the line. For files with extensions , my script works perfectly. My problem is, files without extentions, i.e. . ... (1 Reply)
Discussion started by: busillis
1 Replies

10. UNIX for Advanced & Expert Users

SSH Problem auth problem

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
Login or Register to Ask a Question