当前位置: 技术问答>linux和unix
关于telnet行模式的问题--急
来源: 互联网 发布时间:2016-03-02
本文导语: telnet默认的情况下传输的命令都是一个字符一个字符传输的,比如我在屏幕上敲打dir命令,那么telnet就用三个数据包,分别传d,i,r,我对telnet命令的设置不是很熟,我想问一下,怎么才能以行模式传输,比如我要传...
telnet默认的情况下传输的命令都是一个字符一个字符传输的,比如我在屏幕上敲打dir命令,那么telnet就用三个数据包,分别传d,i,r,我对telnet命令的设置不是很熟,我想问一下,怎么才能以行模式传输,比如我要传dir,那么能把dir在一个数据包里传输,,这在不同的系统里怎么设置?windowsxp windows 2000 linux 里面的设置都是一样吗?? 大家帮忙啊 ,谢谢了
|
telnet localhost
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'
======
都提示你Escape character 是 '^]' 了, 按 CTRL+]就可以到telnet提示符, 输入telnet 命令:
$ telnet localhost
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Trying SRA secure login:
User (mymtom): mymtom
Password:
[ SRA accepts you ]
FreeBSD/i386 (freebsd8.mymtom.cn) (ttyp2)
Password:
Last login: Mon Jan 21 21:17:50 from localhost
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 8.0-CURRENT (GENERIC) #0: Mon Dec 24 21:28:02 CST 2007
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o Security advisories and updated errata information for all releases are
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
for your release first as it's updated frequently.
o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
along with the mailing lists, can be searched by going to
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.
You can press up-arrow or down-arrow to walk through a list of
previous commands in tcsh.
$
telnet> mode line
ls
Desktop doc local src
$
telnet> help
Commands may be abbreviated. Commands are:
close close current connection
logout forcibly logout remote user and close the connection
display display operating parameters
mode try to enter line or character mode ('mode ?' for more)
telnet connect to a site
open connect to a site
quit exit telnet
send transmit special characters ('send ?' for more)
set set operating parameters ('set ?' for more)
unset unset operating parameters ('unset ?' for more)
status print status information
toggle toggle operating parameters ('toggle ?' for more)
slc change state of special charaters ('slc ?' for more)
auth turn on (off) authentication ('auth ?' for more)
encrypt turn on (off) encryption ('encrypt ?' for more)
z suspend telnet
! invoke a subshell
environ change environment variables ('environ ?' for more)
? print help information
opie compute response to OPIE challenge
telnet>
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'
======
都提示你Escape character 是 '^]' 了, 按 CTRL+]就可以到telnet提示符, 输入telnet 命令:
$ telnet localhost
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Trying SRA secure login:
User (mymtom): mymtom
Password:
[ SRA accepts you ]
FreeBSD/i386 (freebsd8.mymtom.cn) (ttyp2)
Password:
Last login: Mon Jan 21 21:17:50 from localhost
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 8.0-CURRENT (GENERIC) #0: Mon Dec 24 21:28:02 CST 2007
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o Security advisories and updated errata information for all releases are
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
for your release first as it's updated frequently.
o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
along with the mailing lists, can be searched by going to
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.
You can press up-arrow or down-arrow to walk through a list of
previous commands in tcsh.
$
telnet> mode line
ls
Desktop doc local src
$
telnet> help
Commands may be abbreviated. Commands are:
close close current connection
logout forcibly logout remote user and close the connection
display display operating parameters
mode try to enter line or character mode ('mode ?' for more)
telnet connect to a site
open connect to a site
quit exit telnet
send transmit special characters ('send ?' for more)
set set operating parameters ('set ?' for more)
unset unset operating parameters ('unset ?' for more)
status print status information
toggle toggle operating parameters ('toggle ?' for more)
slc change state of special charaters ('slc ?' for more)
auth turn on (off) authentication ('auth ?' for more)
encrypt turn on (off) encryption ('encrypt ?' for more)
z suspend telnet
! invoke a subshell
environ change environment variables ('environ ?' for more)
? print help information
opie compute response to OPIE challenge
telnet>