{"id":46,"date":"2012-03-02T23:50:10","date_gmt":"2012-03-02T23:50:10","guid":{"rendered":"http:\/\/blog.chury721.cz\/?p=46"},"modified":"2013-10-09T21:46:32","modified_gmt":"2013-10-09T21:46:32","slug":"ssh-x11-forwarding","status":"publish","type":"post","link":"https:\/\/blog.chury721.cz\/?p=46","title":{"rendered":"SSH X11 forwarding &#8211; Linux, Windows, MacOS"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1>LINUX<\/h1>\n<p>D\u016fle\u017eit\u00e9 je odkomentovat v souboru:<\/p>\n<pre>    \/etc\/ssh\/ssh_config<\/pre>\n<pre>    ForwardX11 no ForwardX11Trusted yes<\/pre>\n<p><strong> LINUX\u00a0 <\/strong><\/p>\n<p>Potom ji\u017e sta\u010d\u00ed zadat do vzd\u00e1len\u00e9ho stroje:<\/p>\n<p>ssh -X user@host.cz -p 2222<br \/>\na zkusit t\u0159eba p\u0159\u00edkaz firefox (pokud je nainstalovan\u00fd), chv\u00edli to trv\u00e1, ale pak u\u017e to fr\u010d\u00ed \ud83d\ude42<\/p>\n<hr \/>\n<h1><strong> WINDOWS\u00a0 <\/strong><\/h1>\n<p>Pro spu\u0161t\u011bn\u00ed program\u016f z Linuxu ve Windows budeme pot\u0159ebovat 2 progr\u00e1mky a to:<br \/>\n<a href=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/02\/putty.exe\"> PuTTy <\/a> a <a href=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/02\/Xming-6-9-0-31-setup.exe\"> Xming <\/a> .<\/p>\n<p>Nainstalujeme Xming a po t\u00e9 spust\u00edme. V System-Tray se n\u00e1m uk\u00e1\u017ee ikona (Xming Server:0.0)<\/p>\n<p>Spust\u00edme PuTTy. V z\u00e1lo\u017ece SSH &gt; X11 Za\u0161krtneme &#8222;Enable X11 forwarding&#8220; a do pol\u00ed\u010dka X display location nap\u00ed\u0161eme &#8222;localhost:0&#8220;.<\/p>\n<p><a href=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/putty.png\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55\" title=\"putty\" alt=\"\" src=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/putty.png\" width=\"466\" height=\"448\" srcset=\"https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/putty.png 466w, https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/putty-300x288.png 300w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/> <\/a> Vr\u00e1t\u00edme se zp\u011bt do z\u00e1lo\u017eky Session a vypln\u00edme pot\u0159ebn\u00e9 \u00fadaje pro p\u0159ihl\u00e1\u0161en\u00ed na server.<br \/>\nP\u0159ihl\u00e1s\u00edme se a m\u016f\u017eeme vesele zkou\u0161et p\u0159\u00edkazy.<br \/>\n<a href=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/kate.png\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56\" title=\"kate\" alt=\"\" src=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/kate.png\" width=\"716\" height=\"518\" srcset=\"https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/kate.png 716w, https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/kate-300x217.png 300w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/> <\/a> <a href=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/mojeip.png\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57\" title=\"mojeip\" alt=\"\" src=\"http:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/mojeip.png\" width=\"815\" height=\"622\" srcset=\"https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/mojeip.png 815w, https:\/\/blog.chury721.cz\/wp-content\/uploads\/2012\/03\/mojeip-300x228.png 300w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/> <\/a><\/p>\n<hr \/>\n<h1>MacOS<\/h1>\n<p>Je pot\u0159eba nainstalovat XQuartz, odkaz na .dmg je zde:\u00a0 <a title=\"XQUARTZ\" href=\"http:\/\/xquartz.macosforge.org\/landing\/\" target=\"_blank\"> http:\/\/xquartz.macosforge.org\/landing\/ <\/a><\/p>\n<p>Potom je pot\u0159eba restart cel\u00e9ho syst\u00e9mu, j\u00e1 se do\u010detl, \u017ee sta\u010d\u00ed pouze restart slu\u017eby SSH, ale opravdu to nesta\u010d\u00ed.<br \/>\nPo restartu zkontrolujeme v Termin\u00e1lu nebo t\u0159eba v iTermu:<\/p>\n<pre>chury721-nb:~ chury721$ echo $DISPLAY<\/pre>\n<p>Vypadne n\u00e1m n\u011bco takov\u00e9ho:<\/p>\n<pre>\/tmp\/launch-x8C7It\/org.macosforge.xquartz:0<\/pre>\n<p>Potom u\u017e sta\u010d\u00ed p\u0159\u00edkaz ke vzd\u00e1len\u00e9mu stroji:<\/p>\n<pre>ssh -X user@host -p 2222<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; LINUX D\u016fle\u017eit\u00e9 je odkomentovat v souboru: \/etc\/ssh\/ssh_config ForwardX11 no ForwardX11Trusted yes LINUX\u00a0 Potom ji\u017e sta\u010d\u00ed zadat do vzd\u00e1len\u00e9ho stroje: ssh -X user@host.cz -p 2222 a zkusit t\u0159eba p\u0159\u00edkaz firefox (pokud je nainstalovan\u00fd), chv\u00edli to trv\u00e1, ale pak u\u017e to fr\u010d\u00ed \ud83d\ude42 WINDOWS\u00a0 Pro spu\u0161t\u011bn\u00ed program\u016f z Linuxu ve Windows budeme pot\u0159ebovat 2 progr\u00e1mky a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3,24,5,9],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-desktop","category-linux","category-macos","category-server","category-windows_7"],"_links":{"self":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":12,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}