SUMMARY: ufsdump via ssh issues

From: Christian Herring (christian@bass.net.au)
Date: Sun Dec 18 2005 - 22:01:49 EST


Hi All,

Thanks to those that replied to my problem.

Yes, I did make a typo in the original post, omitting the dd from the dd
command, very smart. Apologies for that.

I didnt ever find the solution to the problem, but narrowed it down to
something preventing me from executing a command on the remote server.

The only lines I had enabled in the sshd_config were;

        RSAAuthentication yes
        PubkeyAuthentication yes
        AuthorizedKeysFile .ssh/authorized_keys

I could use;

        ssh root@dayna

and be logged in without being prompted for a password

But when i used;
        
        ssh root@dayna 'uname -a'

the remote host would close the connection without executing the
command. I could perfrom this process successfully from dayna to the
other server without problems.

It turned out that the two servers were running substantially different
versions of SSH, and after much messing around I decided to upgrade the
older.

OpenSSH_2.9.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f

OpenSSH_3.9p1, OpenSSL 0.9.7g 11 Apr 2005

Problem fixed but not solved. Thanks again to those that replied, your
comments all assisted me in getting as far as I did.

Regards

Christian Herring

***************************

ORIGINAL POST BELOW

***************************

Hi There,

I am currently having a problem ufs dumping to a remote tape via ssh.
The system specs are;

SunOS spacelab 5.8 Generic_117350-31 sun4u sparc SUNW,Sun-Fire-V240

I can ssh successfully without being prompted for a passwd;

bash-2.03# ssh root@dayna
Last login: Fri Dec 16 13:50:17 2005 from spacelab
Sun Microsystems Inc. SunOS 5.7 Generic October 1998
#

But when i run the following, the remote host closes the connection, I
get the same problem when I try to run other simple commands like
ssh root@dayna "uname -a"
Connection to dayna closed by remote host.

bash-2.03# ufsdump 0uf - / | ssh root@dayna "of=/dev/rmt/0cn"
  DUMP: Writing 32 Kilobyte records
  DUMP: Date of this level 0 dump: Fri Dec 16 12:50:26 2005
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/md/rdsk/d0 (spacelab:/) to standard output.
Connection to dayna closed by remote host.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 2183802 blocks (1066.31MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Broken pipe
  DUMP: The ENTIRE dump is aborted.

I gather that this is an issue with my ssh setup, but cannot find
anything in the messages file suggesting that there is a problem.

Any help would be much appreciated.

Regards

Christain Herring
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:37:51 EDT