特殊:Badtitle/NS100:MythTV/Install/Server/OpenSSH:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
第14行: 第14行:
user@mythbackend:~$ ifconfig
user@mythbackend:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1A:92:1C:BE:20
eth0      Link encap:Ethernet  HWaddr 00:1A:92:1C:BE:20
##--->> inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
  ##--->> inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:6889755 errors:0 dropped:0 overruns:0 frame:0
          RX packets:6889755 errors:0 dropped:0 overruns:0 frame:0
TX packets:3859160 errors:0 dropped:0 overruns:0 carrier:0
          TX packets:3859160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
          collisions:0 txqueuelen:1000
RX bytes:1252961706 (1.1 GiB)  TX bytes:265742573 (253.4 MiB)
          RX bytes:1252961706 (1.1 GiB)  TX bytes:265742573 (253.4 MiB)
Interrupt:50 Base address:0x2000
          Interrupt:50 Base address:0x2000
 
lo        Link encap:Local Loopback
lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
          inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:718 errors:0 dropped:0 overruns:0 frame:0
          RX packets:718 errors:0 dropped:0 overruns:0 frame:0
TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
          TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
          collisions:0 txqueuelen:0
RX bytes:95836 (93.5 KiB)  TX bytes:95836 (93.5 KiB)
          RX bytes:95836 (93.5 KiB)  TX bytes:95836 (93.5 KiB)
</nowiki></pre>
  </nowiki></pre>
Now you can log in remotely in a forwarded X session by replacing your user and address in the following command ''from the remote computer'':
Now you can log in remotely in a forwarded X session by replacing your user and address in the following command ''from the remote computer'':
<pre><nowiki>
<pre><nowiki>

2007年12月6日 (四) 10:46的最新版本

{{#ifexist: :MythTV/Install/Server/OpenSSH/zh | | {{#ifexist: MythTV/Install/Server/OpenSSH/zh | | {{#ifeq: {{#titleparts:MythTV/Install/Server/OpenSSH|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MythTV/Install/Server/OpenSSH|1|-1|}} | zh | | }}

Install OpenSSH Server

From this point forward, I'd recommend you have a ssh server running. It will save a lot of typing during setup and help with debugging problems later. Re-insert the server install CD into the drive and:

$ sudo apt-get install openssh-server

Once it is installed and running, discover the ip address of this machine on your network, so you can log in remotely, if needed:

$ ifconfig
user@mythbackend:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1A:92:1C:BE:20
  ##--->> inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6889755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3859160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1252961706 (1.1 GiB)  TX bytes:265742573 (253.4 MiB)
          Interrupt:50 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:95836 (93.5 KiB)  TX bytes:95836 (93.5 KiB)
   

Now you can log in remotely in a forwarded X session by replacing your user and address in the following command from the remote computer:

$ ssh -X -Y [email protected]

You can remove the server install CD at this time.