📄 ckuus2.c
字号:
#ifdef CK_NETBIOS" . NETBIOS connections",#endif /* CK_NETBIOS */#endif /* OS2 */#endif /* NOLOCAL */" ","While typing commands, you may use the following special characters:"," . DEL, RUBOUT, BACKSPACE, CTRL-H: Delete the most recent character typed."," . CTRL-W: Delete the most recent word typed."," . CTRL-U: Delete the current line."," . CTRL-R: Redisplay the current line.",#ifdef CK_RECALL#ifdef OS2" . Uparrow: Command recall - go backwards in command recall buffer."," . Downarrow: Command recall - go forward in command recall buffer.",#ifndef NOIKSD" (Note: Arrow keys can be used only on the PC's physical keyboard.)",#endif /* NOIKSD */#endif /* OS2 */" . CTRL-P: Command recall - go backwards in command recall buffer."," . CTRL-B: Command recall - same as Ctrl-P."," . CTRL-N: Command recall - go forward in command recall buffer.",#endif /* CK_RECALL */" . ? (question mark) Display a menu for the current command field."," . ESC (or TAB) Attempt to complete the current field."," . \\ (backslash) include the following character literally",#ifndef NOSPL" or introduce a backslash code, variable, or function.",#else" or introduce a numeric backslash code.",#endif /* NOSPL */" ","IMPORTANT: Since backslash (\\) is Kermit's command-line escape character,","you must enter DOS, Windows, or OS/2 pathnames using either forward slash (/)","or double backslash (\\\\) as the directory separator in most contexts.","Examples: C:/TMP/README.TXT, C:\\\\TMP\\\\README.TXT."," ","Command words other than filenames can be abbreviated in most contexts."," ","Basic commands:"," EXIT Exit from Kermit"," HELP Request general help"," HELP command Request help about the given command"," TAKE Execute commands from a file"," TYPE Display a file on your screen"," ORIENTATION Explains directory structure"," ",#ifndef NOXFER"Commands for file transfer:"," SEND Send files"," RECEIVE Receive files"," GET Get files from a Kermit server",#ifdef CK_RESEND" RESEND Recover an interrupted send"," REGET Recover an interrupted get from a server",#endif /* CK_RESEND */#ifndef NOSERVER" SERVER Be a Kermit server",#endif /* NOSERVER */" ","File-transfer speed selection:"," FAST Use fast settings -- THIS IS THE DEFAULT"," CAUTIOUS Use slower, more cautious settings"," ROBUST Use extremely slow and cautious settings"," ","File-transfer performance fine tuning:"," SET RECEIVE PACKET-LENGTH Kermit packet size"," SET WINDOW Number of sliding window slots"," SET PREFIXING Amount of control-character prefixing",#endif /* NOXFER */#ifndef NOLOCAL" ","To make a direct serial connection:",#ifdef OS2#ifdef NT#ifdef CK_TAPI" SET PORT TAPI Select TAPI communication device",#endif /* CK_TAPI */" SET PORT Select serial communication device",#else" SET PORT Select serial communication port or server",#endif /* NT */#else" SET LINE Select serial communication device",#endif /* OS2 */" SET SPEED Select communication speed"," SET PARITY Communications parity (if necessary)",#ifdef CK_RTSCTS" SET FLOW Communications flow control, such as RTS/CTS",#else" SET FLOW Communications flow control, such as XON/XOFF",#endif /* CK_RTSCTS */" CONNECT Begin terminal connection",#ifndef NODIAL" ","To dial out with a modem:"," SET DIAL DIRECTORY Specify dialing directory file (optional)"," SET DIAL COUNTRY-CODE Country you are dialing from (*)"," SET DIAL AREA-CODE Area-code you are dialing from (*)"," LOOKUP Lookup entries in your dialing directory (*)"," SET MODEM TYPE Select modem type",#ifdef OS2#ifdef NT#ifdef CK_TAPI" SET PORT TAPI Select TAPI communication device",#endif /* CK_TAPI */" SET PORT Select serial communication device",#else" SET PORT Select serial communication port or server",#endif /* NT */#else" SET LINE Select serial communication device",#endif /* OS2 */" SET SPEED Select communication speed"," SET PARITY Communications parity (if necessary)"," DIAL Dial the phone number"," CONNECT Begin terminal connection"," ",#ifdef OS2"Further info: HELP DIAL, HELP SET MODEM, HELP SET PORT, HELP SET DIAL",#else"Further info: HELP DIAL, HELP SET MODEM, HELP SET LINE, HELP SET DIAL",#endif /* OS2 */"(*) (For use with optional dialing directory)",#endif /* NODIAL */#ifdef NETCONN" ","To make a network connection:",#ifndef NODIAL" SET NETWORK DIRECTORY Specify a network services directory (optional)"," LOOKUP Lookup entries in your network directory",#endif /* NODIAL */" SET NETWORK TYPE Select network type (if more than one available)"," SET HOST Make a network connection but stay in command mode"," CONNECT Begin terminal connection",#ifdef TNCODE" TELNET Select a Telnet host and CONNECT to it",#endif /* TNCODE */#ifdef RLOGCODE" RLOGIN Select an Rlogin host and CONNECT to it",#endif /* RLOGCODE */#ifdef ANYSSH" SSH [ OPEN ] Select an SSH host and CONNECT to it",#endif /* ANYSSH */#ifdef NEWFTP" FTP [ OPEN ] Make an FTP connection",#endif /* NEWFTP */#ifdef CKHTTP" HTTP OPEN Make an HTTP connection",#endif /* CKHTTP */#endif /* NETCONN */#ifdef NT" ","To return from the terminal window to the K-95> prompt:",#else#ifdef OS2" ","To return from the terminal window to the K/2> prompt:",#else" ","To return from a terminal connection to the C-Kermit prompt:",#endif /* OS2 */#endif /* NT */#ifdef OS2" \Press the key or key-combination shown after \"Command:\" in the status line"," (such as Alt-x) or type your escape character followed by the letter C.",#else" Type your escape character followed by the letter C.",#endif /* OS2 */" ","To display your escape character:"," SHOW ESCAPE"," ","To display other settings:"," SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",#else /* !NOLOCAL */" ","To display settings:"," SHOW COMMUNICATIONS, SHOW FILE, SHOW PROTOCOL, etc.",#endif /* NOLOCAL */" ",#ifdef OS2"For a Kermit 95 tutorial, visit:"," http://www.columbia.edu/kermit/k95tutor.html"," ",#endif /* OS2 */"For a C-Kermit tutorial, visit:"," http://www.columbia.edu/kermit/ckututor.html"," ","To learn about script programming and automation:"," Read the manual, \"Using C-Kermit\". For a brief tutorial, visit:"," http://www.columbia.edu/kermit/ckscripts.html"," ","For further information about a particular command, type HELP xxx,","where xxx is the name of the command. For documentation, news of new","releases, and information about other Kermit software, contact:"," "," The Kermit Project E-mail: kermit@columbia.edu"," Columbia University Web: http://www.columbia.edu/kermit/"," 612 West 115th Street Voice: +1 (212) 854-3703"," New York NY 10025-7799 Fax: +1 (212) 662-6442"," USA",""};static char * hmxymatch[] = {"SET MATCH { DOTFILE, FIFO } { ON, OFF }"," Tells whether wildcards should match dotfiles (files whose names begin"," with period) or UNIX FIFO special files. MATCH FIFO default is OFF."," MATCH DOTFILE default is OFF in UNIX, ON elsewhere.",""};#ifdef OS2#ifdef KUIstatic char * hmxygui[] = {"SET GUI DIALOGS { ON, OFF }"," ON means that popups, alerts, use GUI dialogs; OFF means to use"," text-mode popups or prompts. ON by default."," ","SET GUI FONT name size"," Chooses the font and size. Type \"set gui font ?\" to see the list of"," choices. The size can be a whole number or can contain a decimal point"," and a fraction (which is rounded to the nearest half point)."," ","SET GUI RGBCOLOR colorname redvalue greenvalue bluevalue"," Specifies the red-green-blue mixture to be used to render the given"," color name. Type \"set gui rgbcolor\" to see a list of colornames."," the RGB values are whole numbers from 0 to 255."," ","SET GUI WINDOW POSITION x y"," Moves the K95 window to the given X,Y coordinates, pixels from top left."," (Not yet implemented -- use command-line options to do this.)"," ","SET GUI WINDOW RESIZE-MODE { CHANGE-DIMENSIONS, SCALE-FONT }"," Default is CHANGE-DIMENSIONS.","","SET GUI WINDOW RUN-MODE { MAXIMIZE, MINIMIZE, RESTORE }"," Changes the run mode state of the GUI window.",""};#endif /* KUI */#endif /* OS2 */#ifdef ANYSSHstatic char * hmxxssh[] = {#ifdef SSHBUILTIN"Syntax: SSH { ADD, AGENT, CLEAR, KEY, [ OPEN ], V2 } operands..."," Performs an SSH-related action, depending on the keyword that follows:"," ","SSH ADD LOCAL-PORT-FORWARD local-port host port"," Adds a port forwarding triplet to the local port forwarding list."," The triplet specifies a local port to be forwarded and the hostname /"," ip-address and port number to which the port should be forwarded from"," the remote host. Port forwarding is activated at connection"," establishment and continues until the connection is terminated."," ","SSH ADD REMOTE-PORT-FORWARD remote-port host port"," Adds a port forwarding triplet to the remote port forwarding list."," The triplet specifies a remote port to be forwarded and the"," hostname/ip-address and port number to which the port should be"," forwarded from the local machine. Port forwarding is activated at"," connection establishment and continues until the connection is"," terminated."," ","SSH AGENT ADD [ identity-file ]"," Adds the contents of the identity-file (if any) to the SSH AGENT"," private key cache. If no identity-file is specified, all files"," specified with SET SSH IDENTITY-FILE are added to the cache."," ","SSH AGENT DELETE [ identity-file ]"," Deletes the contents of the identity-file (if any) from the SSH AGENT"," private key cache. If no identity-file is specified, all files"," specified with SET SSH IDENTITY-FILE are deleted from the cache."," ","SSH AGENT LIST [ /FINGERPRINT ]"," Lists the contents of the SSH AGENT private key cache. If /FINGERPRINT"," is specified, the fingerprint of the private keys are displayed instead"," of the keys."," ","SSH CLEAR LOCAL-PORT-FORWARD"," Clears the local port forwarding list."," ","SSH CLEAR REMOTE-PORT-FORWARD"," Clears the remote port forwarding list."," ","SSH KEY commands:"," The SSH KEY commands create and manage public and private key pairs"," (identities). There are three forms of SSH keys. Each key pair is"," stored in its own set of files:"," "," Key Type Private Key File Public Key File"," v1 RSA keys \\v(appdata)ssh/identity \\v(appdata)ssh/identity.pub"," v2 RSA keys \\v(appdata)ssh/id_rsa \\v(appdata)ssh/id_rsa.pub"," v2 DSA keys \\v(appdata)ssh/id_dsa \\v(appdata)ssh/id_dsa.pub"," "," Keys are stored using the OpenSSH keyfile format. The private key"," files can be (optionally) protected by specifying a passphrase. A"," passphrase is a longer version of a password. English text provides"," no more than 2 bits of key data per character. 56-bit keys can be"," broken by a brute force attack in approximately 24 hours. When used,"," private key files should therefore be protected by a passphrase of at"," least 40 characters (about 80 bits)."," "," To install a public key file on the host, you must transfer the file"," to the host and append it to your \"authorized_keys\" file. The file"," permissions must be 600 (or equivalent)."," ","SSH KEY CHANGE-PASSPHRASE [ /NEW-PASSPHRASE:passphrase"," /OLD-PASSPHRASE:passphrase ] filename"," This re-encrypts the specified private key file with a new passphrase."," The old passphrase is required. If the passphrases (and filename) are"," not provided Kermit prompts your for them."," ","SSH KEY CREATE [ /BITS:bits /PASSPHRASE:passphrase"," /TYPE:{ V1-RSA, V2-DSA, V2-RSA } /V1-RSA-COMMENT:comment ] filename"," This command creates a new private/public key pair. The defaults are:"," BITS:1024 and TYPE:V2-RSA. The filename is the name of the private"," key file. The public key is created with the same name with .pub"," appended to it. If a filename is not specified Kermit prompts you for"," it. V1 RSA key files may have an optional comment, which is ignored"," for other key types."," ","SSH KEY DISPLAY [ /FORMAT:{FINGERPRINT,IETF,OPENSSH,SSH.COM} ] filename"," This command displays the contents of a public or private key file."," The default format is OPENSSH."," ","SSH KEY V1 SET-COMMENT filename comment"," This command replaces the comment associated with a V1 RSA key file.",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -