个人工具

UbuntuHelp:MythTV/Install/Server/OpenSSH

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 15:58的版本 (新页面: {{From|https://help.ubuntu.com/community/MythTV/Install/Server/OpenSSH}} {{Languages|UbuntuHelp:MythTV/Install/Server/OpenSSH}} === Install OpenSSH Server === From this point forward, I'd...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

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 user@192.168.1.103

You can remove the server install CD at this time.