亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ssh.c

?? C++編寫
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
	/* Initiate local TCP/IP port forwardings. */	for (i = 0; i < options.num_local_forwards; i++) {		debug("Connections to local port %d forwarded to remote address %.200s:%d",		    options.local_forwards[i].port,		    options.local_forwards[i].host,		    options.local_forwards[i].host_port);		success += channel_setup_local_fwd_listener(		    options.local_forwards[i].port,		    options.local_forwards[i].host,		    options.local_forwards[i].host_port,		    options.gateway_ports);	}	if (i > 0 && success == 0)		error("Could not request local forwarding.");	/* Initiate remote TCP/IP port forwardings. */	for (i = 0; i < options.num_remote_forwards; i++) {		debug("Connections to remote port %d forwarded to local address %.200s:%d",		    options.remote_forwards[i].port,		    options.remote_forwards[i].host,		    options.remote_forwards[i].host_port);		channel_request_remote_forwarding(		    options.remote_forwards[i].port,		    options.remote_forwards[i].host,		    options.remote_forwards[i].host_port);	}}static voidcheck_agent_present(void){	if (options.forward_agent) {		/* Clear agent forwarding if we don\'t have an agent. */		if (!ssh_agent_present())			options.forward_agent = 0;	}}static intssh_session(void){	int type;	int interactive = 0;	int have_tty = 0;	struct winsize ws;	char *cp;	/* Enable compression if requested. */	if (options.compression) {		debug("Requesting compression at level %d.", options.compression_level);		if (options.compression_level < 1 || options.compression_level > 9)			fatal("Compression level must be from 1 (fast) to 9 (slow, best).");		/* Send the request. */		packet_start(SSH_CMSG_REQUEST_COMPRESSION);		packet_put_int(options.compression_level);		packet_send();		packet_write_wait();		type = packet_read();		if (type == SSH_SMSG_SUCCESS)			packet_start_compression(options.compression_level);		else if (type == SSH_SMSG_FAILURE)			log("Warning: Remote host refused compression.");		else			packet_disconnect("Protocol error waiting for compression response.");	}	/* Allocate a pseudo tty if appropriate. */	if (tty_flag) {		debug("Requesting pty.");		/* Start the packet. */		packet_start(SSH_CMSG_REQUEST_PTY);		/* Store TERM in the packet.  There is no limit on the		   length of the string. */		cp = getenv("TERM");		if (!cp)			cp = "";		packet_put_cstring(cp);		/* Store window size in the packet. */		if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0)			memset(&ws, 0, sizeof(ws));		packet_put_int(ws.ws_row);		packet_put_int(ws.ws_col);		packet_put_int(ws.ws_xpixel);		packet_put_int(ws.ws_ypixel);		/* Store tty modes in the packet. */		tty_make_modes(fileno(stdin), NULL);		/* Send the packet, and wait for it to leave. */		packet_send();		packet_write_wait();		/* Read response from the server. */		type = packet_read();		if (type == SSH_SMSG_SUCCESS) {			interactive = 1;			have_tty = 1;		} else if (type == SSH_SMSG_FAILURE)			log("Warning: Remote host failed or refused to allocate a pseudo tty.");		else			packet_disconnect("Protocol error waiting for pty request response.");	}	/* Request X11 forwarding if enabled and DISPLAY is set. */	if (options.forward_x11 && getenv("DISPLAY") != NULL) {		char *proto, *data;		/* Get reasonable local authentication information. */		x11_get_proto(&proto, &data);		/* Request forwarding with authentication spoofing. */		debug("Requesting X11 forwarding with authentication spoofing.");		x11_request_forwarding_with_spoofing(0, proto, data);		/* Read response from the server. */		type = packet_read();		if (type == SSH_SMSG_SUCCESS) {			interactive = 1;		} else if (type == SSH_SMSG_FAILURE) {			log("Warning: Remote host denied X11 forwarding.");		} else {			packet_disconnect("Protocol error waiting for X11 forwarding");		}	}	/* Tell the packet module whether this is an interactive session. */	packet_set_interactive(interactive);	/* Request authentication agent forwarding if appropriate. */	check_agent_present();	if (options.forward_agent) {		debug("Requesting authentication agent forwarding.");		auth_request_forwarding();		/* Read response from the server. */		type = packet_read();		packet_check_eom();		if (type != SSH_SMSG_SUCCESS)			log("Warning: Remote host denied authentication agent forwarding.");	}	/* Initiate port forwardings. */	ssh_init_forwarding();	/* If requested, let ssh continue in the background. */	if (fork_after_authentication_flag)		if (daemon(1, 1) < 0)			fatal("daemon() failed: %.200s", strerror(errno));	/*	 * If a command was specified on the command line, execute the	 * command now. Otherwise request the server to start a shell.	 */	if (buffer_len(&command) > 0) {		int len = buffer_len(&command);		if (len > 900)			len = 900;		debug("Sending command: %.*s", len, (u_char *)buffer_ptr(&command));		packet_start(SSH_CMSG_EXEC_CMD);		packet_put_string(buffer_ptr(&command), buffer_len(&command));		packet_send();		packet_write_wait();	} else {		debug("Requesting shell.");		packet_start(SSH_CMSG_EXEC_SHELL);		packet_send();		packet_write_wait();	}	/* Enter the interactive session. */	return client_loop(have_tty, tty_flag ?	    options.escape_char : SSH_ESCAPECHAR_NONE, 0);}static voidclient_subsystem_reply(int type, u_int32_t seq, void *ctxt){	int id, len;	id = packet_get_int();	len = buffer_len(&command);	if (len > 900)		len = 900;	packet_check_eom();	if (type == SSH2_MSG_CHANNEL_FAILURE)		fatal("Request for subsystem '%.*s' failed on channel %d",		    len, (u_char *)buffer_ptr(&command), id);}voidclient_global_request_reply(int type, u_int32_t seq, void *ctxt){	int i;	i = client_global_request_id++;	if (i >= options.num_remote_forwards) {		debug("client_global_request_reply: too many replies %d > %d",		    i, options.num_remote_forwards);		return;	}	debug("remote forward %s for: listen %d, connect %s:%d",	    type == SSH2_MSG_REQUEST_SUCCESS ? "success" : "failure",	    options.remote_forwards[i].port,	    options.remote_forwards[i].host,	    options.remote_forwards[i].host_port);	if (type == SSH2_MSG_REQUEST_FAILURE)		log("Warning: remote port forwarding failed for listen port %d",		    options.remote_forwards[i].port);}/* request pty/x11/agent/tcpfwd/shell for channel */static voidssh_session2_setup(int id, void *arg){	int len;	int interactive = 0;	struct termios tio;	debug2("ssh_session2_setup: id %d", id);	if (tty_flag) {		struct winsize ws;		char *cp;		cp = getenv("TERM");		if (!cp)			cp = "";		/* Store window size in the packet. */		if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0)			memset(&ws, 0, sizeof(ws));		channel_request_start(id, "pty-req", 0);		packet_put_cstring(cp);		packet_put_int(ws.ws_col);		packet_put_int(ws.ws_row);		packet_put_int(ws.ws_xpixel);		packet_put_int(ws.ws_ypixel);		tio = get_saved_tio();		tty_make_modes(/*ignored*/ 0, &tio);		packet_send();		interactive = 1;		/* XXX wait for reply */	}	if (options.forward_x11 &&	    getenv("DISPLAY") != NULL) {		char *proto, *data;		/* Get reasonable local authentication information. */		x11_get_proto(&proto, &data);		/* Request forwarding with authentication spoofing. */		debug("Requesting X11 forwarding with authentication spoofing.");		x11_request_forwarding_with_spoofing(id, proto, data);		interactive = 1;		/* XXX wait for reply */	}	check_agent_present();	if (options.forward_agent) {		debug("Requesting authentication agent forwarding.");		channel_request_start(id, "auth-agent-req@openssh.com", 0);		packet_send();	}	len = buffer_len(&command);	if (len > 0) {		if (len > 900)			len = 900;		if (subsystem_flag) {			debug("Sending subsystem: %.*s", len, (u_char *)buffer_ptr(&command));			channel_request_start(id, "subsystem", /*want reply*/ 1);			/* register callback for reply */			/* XXX we assume that client_loop has already been called */			dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &client_subsystem_reply);			dispatch_set(SSH2_MSG_CHANNEL_SUCCESS, &client_subsystem_reply);		} else {			debug("Sending command: %.*s", len, (u_char *)buffer_ptr(&command));			channel_request_start(id, "exec", 0);		}		packet_put_string(buffer_ptr(&command), buffer_len(&command));		packet_send();	} else {		channel_request_start(id, "shell", 0);		packet_send();	}	packet_set_interactive(interactive);}/* open new channel for a session */static intssh_session2_open(void){	Channel *c;	int window, packetmax, in, out, err;	if (stdin_null_flag) {		in = open(_PATH_DEVNULL, O_RDONLY);	} else {		in = dup(STDIN_FILENO);	}	out = dup(STDOUT_FILENO);	err = dup(STDERR_FILENO);	if (in < 0 || out < 0 || err < 0)		fatal("dup() in/out/err failed");	/* enable nonblocking unless tty */	if (!isatty(in))		set_nonblock(in);	if (!isatty(out))		set_nonblock(out);	if (!isatty(err))		set_nonblock(err);	window = CHAN_SES_WINDOW_DEFAULT;	packetmax = CHAN_SES_PACKET_DEFAULT;	if (tty_flag) {		window >>= 1;		packetmax >>= 1;	}	c = channel_new(	    "session", SSH_CHANNEL_OPENING, in, out, err,	    window, packetmax, CHAN_EXTENDED_WRITE,	    xstrdup("client-session"), /*nonblock*/0);	debug3("ssh_session2_open: channel_new: %d", c->self);	channel_send_open(c->self);	if (!no_shell_flag)		channel_register_confirm(c->self, ssh_session2_setup);	return c->self;}static intssh_session2(void){	int id = -1;	/* XXX should be pre-session */	ssh_init_forwarding();	if (!no_shell_flag || (datafellows & SSH_BUG_DUMMYCHAN))		id = ssh_session2_open();	/* If requested, let ssh continue in the background. */	if (fork_after_authentication_flag)		if (daemon(1, 1) < 0)			fatal("daemon() failed: %.200s", strerror(errno));	return client_loop(tty_flag, tty_flag ?	    options.escape_char : SSH_ESCAPECHAR_NONE, id);}static voidload_public_identity_files(void){	char *filename;	int i = 0;	Key *public;#ifdef SMARTCARD	Key **keys;	if (options.smartcard_device != NULL &&	    options.num_identity_files < SSH_MAX_IDENTITY_FILES &&	    (keys = sc_get_keys(options.smartcard_device, NULL)) != NULL ) {		int count = 0;		for (i = 0; keys[i] != NULL; i++) {			count++;			memmove(&options.identity_files[1], &options.identity_files[0],			    sizeof(char *) * (SSH_MAX_IDENTITY_FILES - 1));			memmove(&options.identity_keys[1], &options.identity_keys[0],			    sizeof(Key *) * (SSH_MAX_IDENTITY_FILES - 1));			options.num_identity_files++;			options.identity_keys[0] = keys[i];			options.identity_files[0] = xstrdup("smartcard key");;		}		if (options.num_identity_files > SSH_MAX_IDENTITY_FILES)			options.num_identity_files = SSH_MAX_IDENTITY_FILES;		i = count;		xfree(keys);	}#endif /* SMARTCARD */	for (; i < options.num_identity_files; i++) {		filename = tilde_expand_filename(options.identity_files[i],		    original_real_uid);		public = key_load_public(filename, NULL);		debug("identity file %s type %d", filename,		    public ? public->type : -1);		xfree(options.identity_files[i]);		options.identity_files[i] = filename;		options.identity_keys[i] = public;	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线看不卡av| 日韩视频在线一区二区| 婷婷久久综合九色综合绿巨人| 日韩情涩欧美日韩视频| 国产精品主播直播| 天堂久久久久va久久久久| 国产精品精品国产色婷婷| 欧美一区二区三区精品| 91蜜桃视频在线| 国产精品一区二区三区四区| 日韩二区三区在线观看| 中文字幕一区不卡| 久久五月婷婷丁香社区| 欧美高清在线视频| 欧美日韩电影一区| 色8久久精品久久久久久蜜| 高清成人在线观看| 精品一区二区三区在线播放视频| 亚洲国产精品麻豆| 国产精品蜜臀在线观看| 欧美夫妻性生活| 欧洲视频一区二区| 成人av综合一区| 国产99久久久国产精品潘金| 免费观看一级特黄欧美大片| 亚洲成人资源在线| 一区二区不卡在线播放| 国产精品久久久久久福利一牛影视| 久久综合久色欧美综合狠狠| 欧美一级久久久久久久大片| 欧美一区二区视频在线观看2022| 欧美性xxxxx极品少妇| 91黄视频在线| 91福利国产成人精品照片| 99久久久久久99| 成人禁用看黄a在线| 成人国产精品免费观看动漫| 国产精品资源在线看| 国产综合久久久久久鬼色| 免费在线观看精品| 久久众筹精品私拍模特| 欧美va亚洲va| 337p亚洲精品色噜噜噜| 91浏览器打开| 91在线视频观看| 国产999精品久久| 国产一区免费电影| 韩国视频一区二区| 蜜臀av亚洲一区中文字幕| 1024成人网| 国产欧美日韩综合精品一区二区| www亚洲一区| 欧美成人一级视频| 日韩欧美色综合网站| 欧美日产国产精品| 欧美日韩亚洲综合在线 | 久久av资源网| 久久超碰97中文字幕| 久久精品久久综合| 久久超级碰视频| 精品影视av免费| 日本大胆欧美人术艺术动态| 日本美女一区二区三区| 亚洲高清免费视频| 亚洲第一电影网| 亚洲精选视频在线| 亚洲精选视频免费看| 一区二区三区免费观看| 一区二区三区高清在线| 亚洲自拍偷拍图区| 午夜伦理一区二区| 美洲天堂一区二卡三卡四卡视频 | 久久精品亚洲麻豆av一区二区| 精品久久国产老人久久综合| 久久久一区二区三区| 国产精品伦一区二区三级视频| 国产精品午夜电影| 国产精品丝袜在线| 国产精品传媒入口麻豆| 亚洲麻豆国产自偷在线| 亚洲不卡av一区二区三区| 日韩和欧美的一区| 免费成人在线网站| 国产尤物一区二区| yourporn久久国产精品| 在线精品视频一区二区| 日韩一卡二卡三卡| 国产亚洲精品超碰| 亚洲免费在线电影| 视频一区二区欧美| 91在线视频官网| 欧美一级艳片视频免费观看| 久久色视频免费观看| 综合欧美亚洲日本| 婷婷综合五月天| 国产精品一区在线| 色8久久精品久久久久久蜜| 欧美日本一道本| 久久综合狠狠综合| 日韩美女精品在线| 日本v片在线高清不卡在线观看| 国产河南妇女毛片精品久久久| 92国产精品观看| 日韩一区二区三区视频在线观看| 日韩女优电影在线观看| 日韩精品一区二区三区视频播放 | 91精品在线观看入口| 中文字幕在线观看不卡视频| 亚洲一区二区三区精品在线| 六月丁香婷婷色狠狠久久| eeuss鲁一区二区三区| 欧美一级二级三级蜜桃| 国产精品美日韩| 麻豆精品一区二区av白丝在线| 99久久免费精品| 欧美成人精品高清在线播放| 一区二区三区日韩在线观看| 国产在线麻豆精品观看| 欧美人体做爰大胆视频| 国产精品久久久久久久第一福利| 天天色综合成人网| 91尤物视频在线观看| 久久久综合激的五月天| 亚洲精品一二三| 成人高清视频在线| 精品噜噜噜噜久久久久久久久试看| 亚洲精品成人在线| 成人在线视频一区| 欧美影视一区二区三区| 中文字幕乱码久久午夜不卡 | 激情综合色播激情啊| 在线国产电影不卡| 国产精品理伦片| 久久99久久99精品免视看婷婷 | 成人激情图片网| 国产欧美一区二区精品秋霞影院| 美脚の诱脚舐め脚责91| 欧美日韩免费不卡视频一区二区三区| 久久久久国产成人精品亚洲午夜| 亚洲精品老司机| av不卡免费电影| 国产欧美日韩综合| 国产视频一区在线观看| 波多野结衣视频一区| 精品国产乱码久久久久久影片| 亚洲第一激情av| 欧美性淫爽ww久久久久无| 久久免费视频一区| 国产高清久久久久| 久久久久久久久99精品| 国产在线视频一区二区| 欧美成人精品高清在线播放| 日日夜夜精品视频天天综合网| 欧美午夜精品免费| 亚洲国产综合91精品麻豆| 欧美这里有精品| 亚洲国产成人av好男人在线观看| 91豆麻精品91久久久久久| 亚洲一区在线观看视频| 色综合天天视频在线观看| 国产精品久久久久三级| 99国产精品99久久久久久| 综合欧美一区二区三区| 91偷拍与自偷拍精品| 亚洲欧美在线高清| 91激情在线视频| 亚洲sss视频在线视频| 555夜色666亚洲国产免| 青青草成人在线观看| 26uuu另类欧美| 激情偷乱视频一区二区三区| 国产精品免费网站在线观看| 91美女在线观看| 亚洲国产日韩精品| 欧美一区二区网站| 国产麻豆91精品| 国产精品久久久久久久久免费相片 | 免费亚洲电影在线| 精品999在线播放| 国产精品正在播放| 国产精品美女www爽爽爽| 成人91在线观看| 一区二区三区在线视频观看58 | 91精品综合久久久久久| 国产一区二区调教| 国产精品国产成人国产三级| 在线观看网站黄不卡| 日本不卡高清视频| 久久亚洲二区三区| 一本久久a久久精品亚洲| 丝袜美腿亚洲色图| 久久精品亚洲麻豆av一区二区 | 欧美午夜精品一区二区三区| 久久精品国内一区二区三区| 精品少妇一区二区三区日产乱码| 国产jizzjizz一区二区| 一区二区成人在线| 久久久亚洲精品石原莉奈| 91热门视频在线观看| 水蜜桃久久夜色精品一区的特点|