stason.org logo lotus


previous page: 4.3. Can I use ssh to communicate across a firewall?page up: SSH - Secure Shell FAQnext page: 4.5. Can I use ssh to securely connect two subnets across the Inter- net?

4.4. Can I use rdist with ssh?

 Books
 TULARC
















Description

This article is from the SSH - Secure Shell FAQ, by Thomas Koenig Thomas.Koenig@ciw.uni-karlsruhe.de with numerous contributions by others.

4.4. Can I use rdist with ssh?

Stock rdist 6.1.0 does not work together with ssh, due to bugs in it.
The 6.1.1 versions of rdist and later versions are believed to work.

If you use rdist, don't forget to compile the path to ssh into it.
Alternatively, you may specify the -P option so rdist uses ssh, and
not rsh.

If you use password authentication with rdist 6.1.2 or 6.1.3, you will
need to apply the following patch to rdist to make it work:

  --- src/rshrcmd.c.orig  Tue Jun 11 16:51:21 1996
  +++ src/rshrcmd.c	Tue Jun 11 16:52:05 1996
  @@ -63,7 +63,7 @@
		  /* child. we use sp[1] to be stdin/stdout, and close
		     sp[0]. */
		  (void) close(sp[0]);
  -		if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) {
  +		if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0) {
			  error("dup2 failed: %s.", SYSERR);
			  _exit(255);
		  }

This also applies if you get a "Warning: Denied agent forwarding
because the other end has too old version." error (which occurs if
your client is 1.2.17 or later, and it connects to an older server).

Another alternative would be to use rsync, a rdist replacement, which
was designed to work with ssh, and makes better use of bandwidth. More
information can be found at ftp://samba.anu.edu.au/pub/rsync or
ftp://sunsite.auc.dk/pub/unix/rsync.

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

security, SSH, Secure Shell







TOP
previous page: 4.3. Can I use ssh to communicate across a firewall?page up: SSH - Secure Shell FAQnext page: 4.5. Can I use ssh to securely connect two subnets across the Inter- net?