Apple Xserve Up Mac OS X Server Specifications Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
36 Chapter 2 Connecting to Remote Computers
5 To send a command to the remote computer, enter the command.
6 To close a remote connection, enter logout.
You can authenticate and send a command using a single line by appending the
command to execute to the basic ssh tool. For example, to delete a file you could use:
$ ssh -l anne server1.example.com rm /Users/anne/Documents/report
or
$ ssh -l [email protected] "rm /Users/anne/Documents/report"
Youre prompted for the users password.
Using Telnet
Use the telnet tool to create a Telnet connection to a remote computer.
Because telnet isn’t as secure as SSH, Telnet access is disabled by default.
To enable Telnet access:
$ sudo service telnet start
To disable Telnet access:
$ sudo service telnet stop
You are strongly advised not to enable Telnet. When you log in using Telnet, your
login information, user name, and password (as well as your entire Telnet session) are
passed over the Internet in clear text.
Any person on the network running tcpdump, ethereal, or similar applications can sniff
the network and take possession of your user name and password. If you run
something as root during your Telnet session, your root user account is also
compromised.
To access a remote computer using telnet:
$ telnet -l
username server
Replace username with the name of an administrator user on the remote computer.
Replace server with the name or IP address of the remote computer. For example:
$ telnet -l anne 10.0.1.2
After being connected, the remote computer prompts for a login name and password.
Depending on the type of computer you are accessing, you may see a message of the
form:
TERM = (vt100)
Press Enter to accept this default setting.
Page view 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 328 329

Comments to this Manuals

No comments