⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 579-581.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Accessing the Network with telnet, ftp, and the r-Commands</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=30//-->

<!--PAGES=579-581//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="577-579.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="581-583.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>After <TT>telnet</TT> successfully connects to the remote system, the login information is displayed and the system prompts you for your login ID and password. Assuming that you have a valid username and password, you successfully log in and can now work interactively on the remote system.</P>

<P>The following is an example of a <TT>telnet</TT> session from a Linux computer that connects to a Linux computer:</P>

<!-- CODE //-->

<PRE>

$ <B>telnet server.somewhere.com</B>

Trying 127.0.0.1...

Connected to server.somewhere.com.

Escape character is '^]'.

"Red Hat Linux release 4.0 (Colgate)



kernel 2.0.18 on an I486



login: <B>bubba</B>

Password: <B>password</B>

Last login: Mon Nov 11 20:50:43 from localhost

Linux 2.0.6. (Posix).

server:~$

server:~$ <B>logout</B>

Connection closed by foreign host.

$

</PRE>

<!-- END CODE //-->

<P>When you&#146;re finished with the remote session, be sure to log out. <TT>telnet</TT> then reports that the remote session is closed, and you return to your local shell prompt.</P>

<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Using FTP for Remote File Transfer</FONT></H3>

<P>File Transfer Protocol (FTP) is a simple and effective means of transferring files between computers that are connected on a TCP/IP network. FTP allows users to transfer ASCII and binary files.

</P>

<P>During an FTP session, you connect to another computer by using the <TT>FTP</TT> client program. From this point, you can move up and down through the directory tree, list directory contents, copy files from the remote computer to your computer, and transfer files from your computer to the remote system. Normal file protections apply; you can&#146;t get or put a file on the remote system if you don&#146;t have the proper permissions for that file.</P>

<P>To use <TT>FTP</TT> to transfer files, you must know a valid username and password on the remote computer. This username/password combination is used to validate your FTP session and to determine what access you have to files for transfer. Also, you obviously need to know the name of the computer with which you want to conduct an FTP session.</P>

<P>You should be aware that FTP clients have different command sets, depending on the operating system in question. This chapter covers the Linux <TT>FTP</TT> client; however, when you start an FTP session with a remote computer, the commands that the remote system expects might be different. It&#146;s rare for FTP systems to be completely incompatible with each other. Typically, the commands that you normally use are either slightly different or unavailable.</P>

<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Anonymous FTP</FONT></H4>

<P>Due to the explosive growth of the Internet, many organizations have made huge repositories of information available via FTP. These FTP sites have everything from text files to software of every conceivable type available. But how do you access this enormous storehouse of data if you don&#146;t have an account on the remote computer? Do you need to get an account on every FTP site in order to access these files?

</P>

<P>In short, the answer is no. A common convention on the Internet allows guest FTP access to file repositories so that users can transfer files. This guest access is referred to as <I>anonymous FTP</I>. To use anonymous FTP, you start an FTP session to the remote system and use the username of anonymous and your e-mail address as the password. For example, in the following sample, the user named smith on linux.somewhere.com wants to initiate an FTP session with a common FTP site:</P>

<!-- CODE SNIP //-->

<PRE>

$ <B>ftp ftp.uu.net</B>

ftp.uu.net (login:smith): <B>anonymous</B>

Password: <B>smith@linux.somewhere.com</B>

</PRE>

<!-- END CODE SNIP //-->

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Many sites don&#146;t allow anonymous FTP. Allowing guest users to connect to your computer does involve some risk. In cases where anonymous FTP isn&#146;t allowed, the <TT>ftp</TT> command fails with a message similar to <TT>Login failed</TT> - User &#147;anonymous&#148; unknown. Sites that do permit anonymous FTP typically place the user in a restricted directory tree with read-only access. If you&#146;re allowed to place files on the remote computer, you usually can put them in only one directory. <HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077"><I>ftp</I> Command Summary

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="577-579.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="581-583.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -