1. 程式人生 > >Linux之間影象介面的傳輸 ssh -X [email protected]{remote

Linux之間影象介面的傳輸 ssh -X [email protected]{remote

   之前用windows平臺連線Linux平臺,總是通過Xshell+Xming來傳輸Linux系統的介面。

    現在在linux系統平臺下,通過ssh連線另一個Linux系統,如何將遠端Linux的圖形介面傳輸到當前Linux系統呢。搜了好久,好像並沒有人去問這個問題。今天偶然看到別人講解 《mac如何ssh連線linux(ubuntu) GUI圖形介面》https://blog.csdn.net/dobell/article/details/55047811。於是自己瞎試了一下,嘿,居然成功了,記錄一下。

     首先是兩臺電腦上都安裝ssh,我的兩臺Linux都是Ubuntu系統。在遠端Linux上

     編輯 /etc/ssh/sshd_config 配置檔案

    配置轉發引數為yes 

X11Forwarding yes
X11DisplayOffset 10

    重啟ssh 服務

    service ssh restart

    然後在自己Linux端,配置/etc/ssh/sshd_config檔案

    /etc/ssh/ssh_config

    ForwardX11  yes

    然後就大功就快告成了,注意採用ssh連線的時候要加一個引數-X

    ssh -X   [email protected]{remote ip}

    然後開啟一個介面的程式,比如輸入matlab,就出現遠端端的matlab介面了,哇!


相關推薦

Linux之間影象介面傳輸 ssh -X <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15606670677b74787055">[email&#160;protected]a>{remote

   之前用windows平臺連線Linux平臺,總是通過Xshell+Xming來傳輸Linux系統的介面。    現在在linux系統平臺下,通過ssh連線另一個Linux系統,如何將遠端Linux的圖形介面傳輸到當前Linux系統呢。搜了好久,好像並沒有人去問這個問題。

mac/linux/centos通過 ssh <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="21534e4e5561">[email&#160;protected]a>方式連線如何上傳檔案都阿里雲

目錄1、mac上傳檔案到Linux伺服器scp 檔名 使用者名稱@伺服器ip:目標路徑如:scp /Users/test/testFile [email protected]:/test/2、mac上傳資料夾到Linux伺服器,與上傳檔案相比多加了-rscp -r

linux bash Shell特殊變數:Shell $0, $#, $*, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8aaeca">[email&#160;protected]a>, $?

在linux下配置shell引數說明 前面已經講到,變數名只能包含數字、字母和下劃線,因為某些包含其他字元的變數有特殊含義,這樣的變數被稱為特殊變數。  例如,$ 表示當前Shell程序的ID,即pid,看下面的程式碼: [[email protected] /]$ ec

linux中,$*和<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90b4d0">[email&#160;protected]a>有什麼區別?

看了很多的文章,依然似懂非懂。現在,終於理解了它們兩者之間的區別。 $*會把當前指令碼的所有引數作為一個引數傳遞給子指令碼。(在英文中,*字元有“所有”的意思) [email protected]會把當前指令碼的所有引數分別作為一個引數傳遞給子指令碼。(在英文中,@字元有“獨立”的

【Shell】linux bash Shell特殊變數:Shell $0, $#, $*, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f6b0f">[email&#160;protected]<

在linux下配置shell引數說明 前面已經講到,變數名只能包含數字、字母和下劃線,因為某些包含其他字元的變數有特殊含義,這樣的變數被稱為特殊變數。  例如,$ 表示當前Shell程序的ID,即pid,看下面的程式碼: $echo $$ 執行結果 29949

linux中,$*和<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="250165">[email&#160;protected]a>有什麼區別?

看了很多的相關文章,似懂非懂。現在,終於真正理解了它們兩者之間的區別。 首先我們看如下一個bash命令: ./start.sh "a b" "c" "d" 請問,給start.sh指令碼傳遞了幾個引數? 大部分人都知道,總共傳遞了3個引數,其中,$1等於a b,$2等

Linux下$#,$0,$1,$2,$3,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bc98fc">[email&#160;protected]a>,$*,$$,$?代表的含義

$# :傳給指令碼的引數個數; $0 :指令碼名稱; $n :n為數字,代表傳給指令碼的第n個引數; [email protected] :引數列表; $* :也是顯示引數列表,與上一條命

ssh-keygen配合~/.ssh/config免密碼及<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bacfc9dfc8fad2d5c9ce">[email&#160;protected]a>

用過終端登入遠端伺服器或者VPS的童鞋都用過類似的命令:ssh [email protected],輸入密碼後就可以登入遠端伺服器了,但是人總是懶滴,Here,免輸入密碼登入遠端伺服器的方法: 開啟終端,本地生成id_rsa(私鑰),id_rsa.pub(公

linux備忘筆記】Linux root 從bash-3.2回到<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8af8e5e5fecae6e5e9ebe6e2e5f9fe">[email&#160;

1.進入目錄 cd /etc/skel 2.顯示隱藏檔案 ls -a   .bash_logout  .bash_profile  .bashrc  拷貝這些隱藏檔案到/home  接

淺談linux中shell變數$#,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="674327">[email&#160;protected]a>,$0,$1,$2,$?的含義解釋

淺談linux中shell變數$#,[email protected],$0,$1,$2,$?的含義解釋 下面小編就為大家帶來一篇淺談linux中shell變數$#,[email protected],$0,$1,$2的含義解釋。小編覺得挺不錯的,現在就分享給大家,

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="682f011c28273b2b">[email&#160;protected]a>通過Eclipse生成SSH keys RSA公鑰私鑰

       由於我使用的系統是windows,所以不支援ssh-keygen命令沒法自動生成,雖然有專業的ssh-keygen生成工具,但是懶得去下載了,直接用Eclipse比較方便,這裡就講Eclipse生成SSH keys生成RSA公鑰私鑰的方法。 1.安裝好Git工

linux <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="311571">[email&#160;protected]a>和$*區別

最近學習shell程式設計,發現 [email protected]和$*很有意思,分享一下 $* 取當前shell的所有引數,將所有的命令列視為單個字串,相當於“$1$2” [email protected] 取當前shell的所有引數保留引數裡的空白

Linux Bash Shell $*和<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ffdbbf">[email&#160;protected]a>的區別

在 Linux Bash Shell 中,$* 和 [email protected] 都表示引數列表中的所有引數,它們在具體使用中會有哪些不同呢?這裡我們可以寫一個 Shell 指令碼做實

linux命令提示符[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c8baa7a7bc88a4a7aba9a4a0a7bbbc">[email&#160;protected]a> ~]#詳解

       [[email protected] ~]#        root代表當前登入的使用者,在Linux中管理員賬戶是root        localhost當前計

Arch Linux 下Intel + NVIDIA 雙顯示卡3D 遊戲配置(<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="72161d06134032010617131f">[email&#160;

下午打了幾場dota2 感覺流暢度還算很不錯的,寫點東西記錄一下。用Arch Linux 的一般來說都會用搜索引擎,所以只說下需要注意的地方即可。 1. steam 自帶的OpenGL 庫是過時的,

ssh <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0d2cfcfd4e09198908e91978e958e9596">[email&#160;protected]a>

[email protected] MINGW64 /d/d2p/d2p-pc (br-1.0) $ ssh [email protected] The authenticity of host '180.17.5.56 (180.17.5.56)' can't be establ

Linux下Makefile的編寫及四個特殊符號的意義@、<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="062246">[email&#160;protected]a>、$^、$

我們先看三段C++程式: 一、line1的原始碼 line1.h #ifndef _LINE_1_H #define _LINE_1_H void line1_print(const char *strMsg); #endif line1.cpp #includ

mac的終端下面使用ssh <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87f2f4e2f5c7ebe8e4e6ebefe8f4f3">[email&#160;protected]a>輸入密碼

今天用終端ssh 連線 CentOS時提示 以下錯誤 sh-3.2# ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @    WARNING:

本機su登入root使用者輸入的密碼和ssh <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d5f4242596d1c141f031c1b15031c03141b">[email&#160;prot

允許root登入 vi /etc/ssh/sshd_config 將PermitRootLogin值改yes 允許不輸入密碼登入 將PermitEmptyPasswords yes前面的#號去掉 重啟服務:service sshd restart(/etc/in

Linux之Shell學習(三)Shell特殊變數:Shell $0, $#, $*, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="321672">[email&#160;protected]a

前面已經講到,變數名只能包含數字、字母和下劃線,因為某些包含其他字元的變數有特殊含義,這樣的變數被稱為特殊變數。例如,$ 表示當前Shell程序的ID,即pid,看下面的程式碼: $echo $$ 執行結果 29949 特殊變數列表 變數 含義 $0 當前指令碼