2016-10-20

ubuntu 安裝並啟動 RDP Service / SSH Service 的方法

To make Remote Desktop Connection from Windows to ubuntu
--------------------------------------------------------------------------------------------------------------
http://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/
sudo apt-get update
sudo apt-get install xrdp
sudo apt-get install xfce4
-----------------------------------------------------
# Option Install XFCE4 terminal (way better than xterm)
sudo apt-get install xfce4-terminal
# Option Install icon sets
sudo apt-get install gnome-icon-theme-full tango-icon-theme
-----------------------------------------------------
echo xfce4-session >~/.xsession
sudo nano /etc/xrdp/startwm.sh
-----------------------------------------------------
#!/bin/sh

if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

startxfce4
-----------------------------------------------------
sudo service xrdp restart
--------------------------------------------------------------------------------------------------------------

安裝 SSH Service

apt-get install ssh
apt-get install openssh-server

設定檔路徑
vim /etc/ssh/sshd_config

可改比如:

Port 22
PasswordAuthentication yes
PermitRootLogin yes -> 開放 root 登入 (一般不會開)

重啟服務
/etc/init.d/ssh restart

沒有留言:

張貼留言