OpenSSH 是 SSH (Secure SHell) 协议的免费开源实现。它用安全、加密的网络连接工具代替了 telnet、ftp、 rlogin、rsh 和 rcp 工具。OpenSSH 支持

源代码在线查看: exit-status.sh

软件大小: 870 K
上传用户: wangcong200500
关键词: OpenSSH Secure telnet rlogin
下载地址: 免注册下载 普通下载 VIP

相关代码

				#	$OpenBSD: exit-status.sh,v 1.6 2002/03/15 13:08:56 markus Exp $				#	Placed in the Public Domain.								tid="remote exit status"								for p in 1 2; do					for s in 0 1 4 5 44; do						trace "proto $p status $s"						verbose "test $tid: proto $p status $s"						${SSH} -$p -F $OBJ/ssh_proxy otherhost exit $s						r=$?						if [ $r -ne $s ]; then							fail "exit code mismatch for protocol $p: $r != $s"						fi										# same with early close of stdout/err						${SSH} -$p -F $OBJ/ssh_proxy -n otherhost \				                	exec sh -c \'"sleep 2; exec > /dev/null 2>&1; sleep 3; exit $s"\'						r=$?						if [ $r -ne $s ]; then							fail "exit code (with sleep) mismatch for protocol $p: $r != $s"						fi					done				done							

相关资源