Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/ssh

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# ssh host arg... - invoke ssh v1.  if it fails, try v2.
rfork e

if (test -w /dev/label) {
	olab=`{cat /dev/label}
	label ssh $*
}

if (! /$cputype/bin/ssh1 $* >[2]/dev/null)
	exec /$cputype/bin/ssh2 $*

if (test -w /dev/label)
	label $olab

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].