Rsh



 RSH Զ̼Windows XP  Windows 2000 ṩ RSH Windows 2000 Server Resource Kit ṩΪ Rshsvc.exe  RSH ʹò rsh ʾ


﷨



rsh [Host] [-l UserName] [-n] [Command]






	Host

	ָ command Զ̼

	-l UserName

	ָԶ̼ʹõûʡ£ʹõǰ¼ûơ

	-n

	 rsh ض NULL 豸ֹؼʾ

	Command

	ָҪе

	/?
ʾʾ



ע


 ׼
	
rsh ׼븴ƵԶ commandԶ command ı׼Ƶ׼Զ command ı׼Ƶ׼Rsh ͨԶֹʱֹ
    
 ʹض
	
 ΪʹضԶ̼ϷҪסضţ ">>"ʹţضڱؼ磬ԶļRemoteFileӵļLocalFileУ

 rsh othercomputer cat remotefile >> localfile

 Զļ Remotefile ӵԶļ otherremotefile У

 rsh othercomputer cat remotefile ">>" otherremotefile
ʹ rsh

ʹѵ¼ĳ Windows XP Professional ļʱȷû rsh ʧܡ
    
 .rhosts ļ
	
 .rhosts ļͨ UNIX ϵͳȨޡ.rhosts ļгԷԶ̼ļĵ¼ȷ .rhosts ļԶ̼ rcprexec  rsh ʱṩԶ̼ĵ¼Ϣ

 .rhosts ļһıļļÿһΪһĿĿɱؼûйظĿעɡÿĿƱոֿע÷ (#) ͷ磺

 host7   #This computer is in room 31A

 .rhosts ļԶ̼ûĿ¼СйԶ̼ .rhosts ļضִеϸϢԶϵͳĵ
    
 ֻеЭ (TCP/IP) Э аװΪԵʱſá
    







Ҫ admin1 Զ̼ vax1 ִ telcon 룺

rsh vax1 -l admin1 telcon



XOX



 
