Linux Remote Access | SSH and X11 Forwarding

Поделиться
HTML-код
  • Опубликовано: 4 авг 2019
  • Let's access our Linux box using SSH and then launch Graphic Programs using X11 Forwarding. We will be using both Windows and Linux to access our device.
    Upcloud (Get an additional 7 days and a $25 credit with promo code: christitus) upcloud.com/signup/?promo=chr...
    X11 Client for Windows: sourceforge.net/projects/xming/ .
    ►► Digital Downloads ➜ www.cttstore.com
    ►► Reddit ➜ / christitustech
    ►► Titus Tech Talk ➜ / titustechtalk
    ►► Twitch ➜ / christitustech
  • НаукаНаука

Комментарии • 160

  • @theodoros_1234
    @theodoros_1234 5 лет назад +41

    9:57 That feeling when you boot up Linux again after using Windows.
    IDK but I felt kinda relieved at that moment of the video.

    • @mattgarelli1371
      @mattgarelli1371 4 года назад +1

      Exactly the comment I needed. Came back down to this section to like.

    • @puchu9507
      @puchu9507 3 года назад +2

      Windows - putting your hand through a hole and hope nothing bites
      Linux- walking in your living room

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 5 лет назад +3

    Thank you, Chris. I remember the first time I used X11 Forwarding about a decade ago and was utterly amazed.

    • @klightspeed
      @klightspeed 5 лет назад +1

      Just don't use it on a link that is likely to drop - when the link drops, the X server will go away, and any programs running on that X server will also go away (I personally only use a graphical session for controlling my host from my guest, and in that case I use x11vnc on the host and tightvnc on the guest, and try to always do anything that needs to survive a link drop in a screen session). For graphical applications that require hardware acceleration, you would need to enable indirect rendering (I recall getting that working a couple of years ago, but don't currently remember the steps I used to do it).

  • @aaronryder4008
    @aaronryder4008 5 лет назад +10

    Holy moly! I remember asking for this video tutorial a couple of months ago. Finally you delivered it. Thank you!!

  • @johnsnyder4379
    @johnsnyder4379 5 лет назад +4

    Chris, I love your videos! I've just switched from Windows to Manjaro Cinnamon - and I'm running everything out of Linux except for Quicken. I've created a KVM Windows virtual machine for sole purpose of running Quicken. I'd like to suggest some video topics that would be especially helpful for me: 1. A whole SERIES on sharing and permissions, 2. A mini-series on creating KVM virtual machines (including raw vs qcow2, BIOS vs OVMF, virtual disk caching, VNC vs Spice, NAT networking vs. bridged networking, integrating NoMachine into the mix, sharing and using mounted drives - in other words, a VERY detailed series of instructional videos), and 3. If you get through the first two and still want more, I'll be happy to add to the list!!
    Thanks for your assistance so far. I followed your instructions regarding creating a Conky and now have a very useful display on the right side of my display!

    • @jim7smith
      @jim7smith 2 года назад +1

      @John Snyder Switch to gnucash, you will love it.

  • @randint
    @randint 5 лет назад +6

    ssh is great, I once used it to transfer like 13 GB of data (I was transferring my /home folder to another computer), and it worked like a charm.

  • @gwgux
    @gwgux 5 лет назад +2

    Wow, I just realized I haven't done X11 forwarding in over a decade. At one of the places I used to work at, their monitoring software was configured to SSH into Linux, AIX, and Solaris boxes and bring up status windows on a Windows PC for monitoring what was happening in each of their environments. X11 forwarding is a powerful tool when used correctly, but a lot of its previous uses has been replaced by web interfaces and the results have been a mixed bag.
    That said, just seeing it again has inspired me to take another look at it and see what I can cook up now. Web interfaces for everything built on HTML5 just doesn't do everything efficiently or as well as running an app on a remote host so there's still a good need for it. Thanks Chris, ideas are floating into my head for some of my tasks at work now. :)

  • @dennisjoslin
    @dennisjoslin 5 лет назад +3

    Nice video which, unfortunately, showcases the shortcomings of X11 forwarding. Although it's more work to setup, something like XRDP or FreeNX provides a much better experience! Also, since you are covering SSH, SCP is another one that's so very useful!!

  • @JasonBassettThurrock
    @JasonBassettThurrock 5 лет назад

    Hello Chris, very informative video, thanks. How would I go about piping say Microsoft Office from my Windows 10 PC over SSH to my Ubuntu Linux laptop, or another Windows 10 PC?

  • @send2gl
    @send2gl 5 лет назад

    I privately manage a few Linux machines via ssh, two remotely from UK to US. All connections are via ssh, sometimes using a tunnel for VNC and proxy browsing or using sftp to display remote file system. On the default Ubuntu file manager (files I think it is called) there is an option to connect using sftp then it shows up in your file manager locations same as local files. This would then make all remote files easily available for editing with any local application. Personally I've never found X11 forwarding very successful. Great videos by the way.

  • @hewfrebie2597
    @hewfrebie2597 5 лет назад +3

    What about ufw the iptables frontend for beginners?

  • @badpants
    @badpants 5 лет назад +8

    You might want to try VcXsrv instead of Xming. Pretty much identical, but VcXsrv is still being updated while Xming was last updated in 2016. The biggest problem with all of this, especially when running an X app over SSH, is remebering what machine the app is actually running on.

    • @lorcro2000
      @lorcro2000 5 лет назад

      I wasn't aware of it, thanks for mentioning it.

  • @brianjune177
    @brianjune177 5 лет назад +5

    I typically ssh-keygen then ssh-copy-id to all my endpoints then create a whiptail script to have a quick menu where I can select a system and on select.... instant ssh connection without entering password. Very helpful when you have a too many raspberries ;-)

    • @jim7smith
      @jim7smith 2 года назад

      Would love to see the nuts and bolts of what you described. Got a link?

  • @davidhusicka8440
    @davidhusicka8440 4 года назад

    So if I install this X11 server, I can write programs using Xlib and run it on Windows natively?

  • @katrinabryce
    @katrinabryce 5 лет назад

    How do you find Windows Service for Linux for SSH support? I have Ubuntu installed in it, I tried all the free ones on the App Store and that seemed to be the one that was most compatible, even though I'm not generally a Ubuntu fan.

  • @Steve-fz4it
    @Steve-fz4it 5 лет назад +1

    Great video! Thank you for your help.

  • @stanislavmaltsev3453
    @stanislavmaltsev3453 5 лет назад +3

    Could I use x11 forwarding to start gui app when connecting to linux server wich has console only(no graphics shell)

    • @ironnerd2511
      @ironnerd2511 2 года назад

      I believe it is possible but have to install x server on the server.

  • @terry.chootiyaa
    @terry.chootiyaa 5 лет назад +7

    *Chris the best example you should have shown the usage of X11 & SSH would have been on cloud platforms like SSH into a server on AWS or AZURE. ..☺👍*

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад +3

      True, these principals are the same regardless of location and no syntax changes.

  • @wf2v
    @wf2v 3 года назад +1

    What do you do on the Linux side to enable X11?

  • @JocheOjedaXAFXAMARINC
    @JocheOjedaXAFXAMARINC 4 года назад

    I'm new using the console, I love this trick ))

  • @jaimeduncan6167
    @jaimeduncan6167 2 года назад

    Thanks for sharing your expertise. Basically a nice science fair project. If one has issue launching something as simple as a file viewer of a internet browser is little good one can say about it. For server stuff ssh and a good terminal client is more than enough.

  • @CKlegion7272
    @CKlegion7272 5 лет назад +3

    👍🏻
    Greetings from Netherland

  • @yvrelna
    @yvrelna 5 лет назад +1

    If all you're using SSH X Forwarding for is to run a file manager, then you can instead just use SFTP or SSHFS instead and use a local file manager application to manage your remote files. This has the benefit that you can copy paste or drag'n'drop files to upload/download files between your local and remote machine and there's no graphic/input latency as the application will be running locally. Also, there are a number of Security issues with doing X11 forwarding if you don't fully trust the server which using SSHFS/SFTP would avoid.

  • @yaajfcomments7171
    @yaajfcomments7171 5 лет назад +2

    You should check out Xpra. TLDR: remote programs will not hang when connection breaks.
    Here is "about" section from their home page:
    " Xpra is an open-source multi-platform persistent remote display server and client for forwarding applications and desktop screens.
    It gives you remote access to individual applications or full desktops.
    On X11, it is also known as screen for X11: it allows you to run programs, usually on a remote host, direct their display to your local machine, and then to disconnect from these programs and reconnect from the same or another machine, without losing any state.
    It can also be used to forward full desktops, from X11 servers, MS Windows, or Mac OS X.
    Xpra also allows forwarding of sound, clipboard and printing services.
    Sessions can be accessed over SSH, or password protected over plain TCP sockets with or without SSL.
    Xpra is usable over reasonably slow links and does its best to adapt to changing network bandwidth constraints."
    You'll probably be able to run browser or LibreOffice remotely with Xpra.

  • @NAHPyboy
    @NAHPyboy 4 года назад

    Any chance you would make this guide to create a file server to access files remotely (via SSH?) as if I'm connecting my laptop from one home network to another person's home network? I'd like to run a file server at home and share photos and movies between family members over Windows?

  • @ethangender
    @ethangender 3 года назад

    the 2000$ question. do i the performance of the computer its affected while doing the xforward?

  • @puchu9507
    @puchu9507 3 года назад

    What happens if you open startx ? Will it load existing x session ? I tried piping x session through SSH but I had to create a script to automate login otherwise the server would just die after a session is closed, can't replicate that script any longer.

  • @praetorxyn
    @praetorxyn 5 лет назад

    Chris I'd like to see you do a video about the XDG Base Directory Specification to manage dotfiles instead of dumping them in home.
    Newer software usually supports it, some things like Gimp were updated to support it past a certain version, some things you can set environment variables to support it (preferable since if these are sourced properly they'll be available through the GUI too) or pass command line args, which means creating an alias / editing GUI shortcut.
    SSH is one of those "will never support it" things, as is cups. You can do it with an alias and config file, but may have problems because so many things expect ~/.ssh to be there.
    I am creating a git repo using dotbot to manage my dotfiles and have a couple of scripts for trying to force XDG compliance. The Arch Wiki has a page listing the support of various programs.

  • @timgoppelsroeder121
    @timgoppelsroeder121 2 года назад

    i cant pull up gedit at the 4:50 mark as it states " 'gedit' is not recognized as an internal or external command,
    operable program or batch file." how can i fix this i have downloaded and installed it on my windows machine as well as my alpine VM?

  • @joshhardin666
    @joshhardin666 5 лет назад +1

    wouldn't it be a significantly smoother way to go be to install xrdp and forward rdp over ssh? That's basically how I access my windows machines remotely, and then you can do session resume and stutf.

  • @engineer20033
    @engineer20033 4 года назад

    Hello Chris, thanks for your nice video. Could we use the X11 forwarding protocol to connect to a remote MS windows PC?

    • @kneonspace
      @kneonspace 3 года назад

      X11 forwarding is a subset of the x windows system used for the graphical shell in linux Windows does not support x org natively. Maby with a hacky solution but probably not.

  • @vicentcarro
    @vicentcarro 5 лет назад +1

    What mic are you using.?

  • @josh-rx6ly
    @josh-rx6ly 5 лет назад

    Thank you for the intro to new file managers.
    Could you do a list of useful free and open source software for new Linux users?

  • @MrLight_001
    @MrLight_001 5 лет назад +1

    I like that one. Nice Video

  • @dibbyo456
    @dibbyo456 3 года назад

    Just what I was looking for.

  • @Morno007
    @Morno007 5 лет назад +1

    I use securecrt on both windows and Linux and I love it

  • @michael.penrod
    @michael.penrod 5 лет назад

    To ssh into my raspberry pi from Windows 10 I'm using powershell core with openssh (was already installed on Windows 10 for me) and the bash terminal looks great! That being said I haven't tweaked that terminal with custom fonts or anything so not a valid test but it does work nicely.

  • @justfierbenedict5260
    @justfierbenedict5260 3 года назад

    This is cool Titus.

  • @zizzu549
    @zizzu549 5 лет назад

    Cool, never did this but i think it is possible to setup an hand made container and use this stuff in it, why give the whole system on the wire when you can use namespaces.

  • @sysosmaster
    @sysosmaster 5 лет назад +2

    Chris Titus Tech well. Yes and no. If you trust your local network and the network you connect to than tunnelling X11 is as safe as tunnelling any other application. How ever the X11 protocols themselves are not considered “safe for internetwork use”. There are a whole heap of security holes in the X11 protocol and it’s why most admins disable it outright in favour of a vnc / OpenVPN setup for tunnelling the main desktop to a remote location (desktop :0 or :1 ). This has less of the issues of X11 but still has some.
    For any externally accessible ssh service you should employ at least
    - fail2ban or other logscanner and banner
    - key only login. Passwords are to easy to brute force / obtain via other means.
    - a proper firewall (I personally prefer CSF but that quite strict UFW if configured will also work)
    The reason google-chrome failed is that your X11 was not elevated. So it could not access the cryptographic random function if your remote box. (Something you should not want through X11).
    Also remember that access to a box is also access to your network. It is often easier to break into a mother box from the inside.
    I personally use ssh daily and keep on learning more about it (wishing I knew about it when I started working on windows 98 Remote Desktop... it would have saved me a ton of headache).

  • @blackbriar6178
    @blackbriar6178 3 года назад

    I really like your mini xming/SSH/X11 forwarding tutorial. It's going to make life easier accessing my simulation server. Can you you show me how you modified bashrc in putty to reflect what you have here as that makes all the difference in my case running multiple terminal windows. Thanks again in advance.

  • @send2gl
    @send2gl 5 лет назад

    Appreciate VNC can be sometimes a wee bit slow but bearing in mind two file managers failed in your demo using X forwarding maybe VNC through an SSH tunnel would be a decent option.

  • @drumpf4all
    @drumpf4all 5 лет назад +2

    Your enthusiasm is infectious. Could you do a tutorial on setting up a FTP Server using vsftpd?

    • @dingokidneys
      @dingokidneys 5 лет назад +1

      It depends on your usage case but you could use SFTP with your ssh server to achieve the same thing. Or SSHFS with your local file manager, e.g. Thunar, Nautilus, etc. or FileZilla for Windows. This is easier and far more secure than setting up a proper FTPd.
      I would absolutely NOT expose an FTP server to the internet these days. It is so hard to secure properly compared to sshd.

    • @drumpf4all
      @drumpf4all 5 лет назад

      Dingo Kidneys thank you. But I have clients that I need to get large files to. FTP is the best solution. The client is not sophisticated enough to do sftp or ssh. They only know how to go to a browser and click a file to download. You can do that in a browser. Anything else I can do. I know you can harden vsftpd with ssl/tls.

    • @dingokidneys
      @dingokidneys 5 лет назад

      @@drumpf4all If you have unsophisticated users who need to access your large files over the internet and particularly if they are using Windows, I would look at Dropbox or a similar service. With Dropbox you can share one particular folder with them so that it and the files in it just show up on their PCs. Or you can send them a download link to the Dropbox file so they don't have to have Dropbox installed.
      Alternatively FileZilla on Windows allows them to link to your SSH server and copy files from one pane in the window to the other. You would have to be careful not to give them too much access to your system though. Perhaps set up a 'shared' user or give each their own user on your system if they need different things.
      Really, teaching them FTP unless you're going to script it would be a significant issue.
      I've used the Dropbox solution quite a few times with good results even with a user who could break just about anything. :)

    • @drumpf4all
      @drumpf4all 5 лет назад

      Dingo Kidneys All great ideas. Thank you for the suggestions. I suppose I could also put the files on an Apache or Nginx server and secure the connection using let’s encrypt. Or, better yet, setup a Nextcloud instance and share files that way.

    • @yvrelna
      @yvrelna 5 лет назад +1

      Just throwing out another option here, if you don't use Nextcloud's other features, I find Syncthing is just internally much better designed than Nextcloud, especially when you have lots of small files, Syncthing's custom file sync protocol makes for a significantly faster and more reliable syncing than Nextcloud which uses WebDAV (and it uses it inefficiently).
      Syncthing also does not necessarily require a server and can do peer to peer syncing if need be.

  • @terry.chootiyaa
    @terry.chootiyaa 5 лет назад +3

    *HI Chris , is it possible to run your own update server to update your own systems for Linux ? And not rely on the community to update or upgrade your personal servers. How could this be done ? Securely, thanks for any advise ☺*

    • @shuwan4games
      @shuwan4games 5 лет назад

      do you mean your own kernels?

    • @terry.chootiyaa
      @terry.chootiyaa 5 лет назад +1

      @@shuwan4games *No not just kernels but software updates , suppose you have your own inhouse developed software and you want to update your own private servers around the world but you get to choose what is pushed out to your system and not rely on the community (as great as they are) something like your own private PPA REPOSITORY ☺*

    • @katrinabryce
      @katrinabryce 5 лет назад

      Use rsync to create your own mirror of the repository, and point your apt-sources or whatever to that instead of the official distro repository.

    • @yvrelna
      @yvrelna 5 лет назад

      This depends on what package manager your distro is using, but yes this is possible. If you're using apt, the download servers are just regular HTTP server, so all you really need to do is setup an HTTP caching server (e.g. squid) and tell apt to use the proxy. There's also AptCacherNG to make all these even simpler.

  • @Zyphyr420
    @Zyphyr420 4 года назад

    what about linux mint to windows10 through ssh?

  • @StringerNews1
    @StringerNews1 5 лет назад

    20 years ago I noticed that every IP address I had at home was being portscanned by IP addresses in China. Since then I've closed down "classic" ports and used SSH for port forwarding, using only port numbers above 1024 (the higher the better) to make portscans as difficult as possible. Back when Webmin was big, I would put the Webmin HTTPS for each of my machines in order starting at something like 10011 for desktops and 10091 for servers, but have since stopped exposing that to the Internet, and stopped using Webmin. A similar port order for SSH makes it easy to remember the LAN IP by port number using PAT.

  • @contournut5726
    @contournut5726 5 лет назад +1

    SSH Episide 2: sshkeys. Episode 3: sshfs. Episode 4: Tunnels - x11vnc piped over ssh, local desktop access behind safe, key only, ssh authentication.

  • @Henk717
    @Henk717 5 лет назад +5

    For windows i recommend MobaXterm, has X11 forwarding support perfectly working out of the box nothing else needed!
    For Linux the linux side there is another really neat application called X11Clone which allows you to view your desktop session over ssh. Its basically a secure VNC alternative that does not need open ports other than SSH.

    • @breakersun
      @breakersun 3 года назад

      I should try that out. Thanks for sharing.

  • @awaisahmad9133
    @awaisahmad9133 Год назад

    Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server

  • @wongisa368
    @wongisa368 4 года назад

    thanks for the video

  • @stargirl3352
    @stargirl3352 5 лет назад +8

    You should do a video about sftp file sharing, it is quite usefull in a private network.

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад +7

      Yeah I need to cover the SCP command as well.

    • @LampJustin
      @LampJustin 5 лет назад +3

      @@ChrisTitusTech and hopefully sshfs, I guess?!

    • @s0litaire2k
      @s0litaire2k 5 лет назад +5

      or just use sshfs to mount a remote system locally, I've used it in the past to mount a folder from a remote server and use nautilus to browse and copy things between local machine and remote server.
      I also used sshfs to mount in fstab my media folder when it was hosted on a small NAS drive. It's lot easier than messing with samba :D

    • @dingokidneys
      @dingokidneys 5 лет назад

      @@s0litaire2k These days I serve media on my network via 'minidlna'. It serves stuff up over UPnP and my little media player, my Chromecast, various Android devices can all just pick the stuff up without having to talk CIFS or NFS or SSH. VLC on Windows or Linux will also pick up and play media from it.
      It's light weight and very cool.

    • @JakeSmith-fz9fp
      @JakeSmith-fz9fp 3 года назад

      Hmm...when I choose to enable the ssh service in opensuse, connecting to localhost with dolphin works

  • @paulmaydaynight9925
    @paulmaydaynight9925 5 лет назад +2

    apt-get install worker
    oc the question arises, how do you get X11forwarding type functionality in 2019/20 when you dont run X anymore!

    • @yvrelna
      @yvrelna 5 лет назад

      X protocol will still be supported even in Wayland, via XWayland, this is necessary to run all the legacy applications even in local desktop, so X likely still will have some life at least for another two decades. You can't port the entire world of legacy software in one day.
      Beyond that, if we still have some X applications somehow, we'll probably see solutions like of Xnest/Xephyr becoming more common to allow running legacy applications or Wayland may just decide to just make X support a permanent fixture of its core features.

    • @jadosrd8950
      @jadosrd8950 4 года назад +1

      if wayland includes any more features, it will be heavier than X11. And Wayland still has a long way to go.

  • @paherbst524
    @paherbst524 5 лет назад

    You can run libGL apps if you use swrast mesa using llvmpipe. Might not work super fast, but it will allow apps to actually run. Not sure the state of Xming and if it even has the GLX and Composite extentions. Cygwin does.

  • @vgfxworks
    @vgfxworks 4 года назад

    xrdp any good?

  • @ChrisHatzisSydney
    @ChrisHatzisSydney 4 года назад

    I could add many things(that I believe that are missing) here but I would like to add one important thing.
    On RHEL/CentOS/Fedora systems if we change the port to anything other than the default, we need to update the SELinux rule. We need to update it actually by running semanage port -a -t ssh_port_t -p tcp {your new port number goes here}. Thus if you haven't disabled the SELinux.

  • @verynice5258
    @verynice5258 Год назад

    Thank you

  • @paherbst524
    @paherbst524 5 лет назад

    On windows I use cygwin/x . Actual openssh. Works nicely.

  • @MrCosmonaut
    @MrCosmonaut 5 лет назад +1

    As always, extremely useful video, thanks!

  • @StraussBR
    @StraussBR 5 лет назад +2

    Have you heard of X2Go?

  • @HtopSkills
    @HtopSkills 4 года назад +1

    I thought application on SourceForge was safe

  • @neko-san5965
    @neko-san5965 5 лет назад

    Can I request a video about setting up a stable Virtual LAN network with a friend over the net for gaming?

  • @spikespaz
    @spikespaz 5 лет назад

    8:15 Google Chrome didn't crash. It would probably have worked. Those two were warnings from GTK, not fatal errors. At most there would have been some issues with colors and icons on the browser interface. You already had Google Chrome running in another window, probably on the physical desktop environment, and it used that to launch a new tab or your home page.

  • @amitmatok2883
    @amitmatok2883 5 лет назад +1

    Thanks! Would love to see a tutorial on how to connect to ubuntu using RDP from Windows, couldnt make it work

    • @Stephen-yd7ce
      @Stephen-yd7ce 5 лет назад +2

      Me too! Tried for hours to make XRDP work on Mint and finally through in the towel. Seemed to be a 2D v 3D desktop environment causing the problem (all I could find on the web) , but trying to switch DT environments on Mint just screwed it up.

    • @matthewcaylor342
      @matthewcaylor342 4 года назад

      I use a program called Remmina for RDP and VNC connections. It will also do ssh proxy too.

  • @felderup
    @felderup 5 лет назад

    i've been using xming, which has an opengl over network option, since my windows 98se days.

  • @HikariKnight
    @HikariKnight 5 лет назад

    the only thing i would recommend @christitustech is to use vcxsrv instead of xming, it lets you run some of the more graphical demanding gui programs and it has some more performance tweaks that xming lacks
    sourceforge.net/projects/vcxsrv/
    however both are good but i prefer vcxsrv as its newer and has opengl compatibility :) (still dont try running games over it though!)

  • @TheRealDavidLawrence
    @TheRealDavidLawrence 5 лет назад +1

    The "windows glasses" are slowly coming off.. this video is going to be saved. I will use this to start the storage server.

  • @BandanazX
    @BandanazX 5 лет назад

    Wow all those browser extensions. Do a video on that.

  • @RandomPate
    @RandomPate 5 лет назад +1

    Ssh is integrated into windows powershell no more putty please

  • @buddyshearer4170
    @buddyshearer4170 5 лет назад

    Cool, is X11 already active within SSH in Linux environments?

    • @dingokidneys
      @dingokidneys 5 лет назад +2

      You often have to enable X11 forwarding for the server; /etc/ssh/sshd_config, and uncomment or set "X11Forwarding yes".
      You sometimes also have to enable X11 forwarding in the client either on the command line with '-X' or '-Y' or in ~/.ssh/config or even in /etc/ssh/ssh_config
      You can check the full configuration of your ssh server with 'sshd -T | less'. This shows all settable values, not just those in the config file.

    • @yvrelna
      @yvrelna 5 лет назад

      @@dingokidneys Another config that you may have to do is copying the xauth cookie.

    • @dingokidneys
      @dingokidneys 5 лет назад

      @@yvrelna PuTTY handles that automatically, which is nice if you're using a Windows client, though I've never found that necessary with a modern SSH implementation on Linux. The man page implies that it is done automatically when using X11 forwarding.

  • @premier69
    @premier69 3 года назад

    any graphical program: Unable to init server: Could not connect: Connection refused
    Could not parse arguments: Cannot open display:

  • @kat5607
    @kat5607 5 лет назад

    i just finished setting ssh on windows.... well time to set it up on my phone too i guess!

    • @dingokidneys
      @dingokidneys 5 лет назад

      I have a thing called JuiceSSH on my Android phone which works really well. However, never permit password authentication if you expose your ssh server to the internet. Set up public/private keys with a passphrase on your keyfile and then kill passwords on your server. That way you can securely access your home machine from anywhere in the world and administer it.

  • @s9209122222
    @s9209122222 5 лет назад

    I have enabled X11Forwarding in the sshd_config, but it still doesn't work for gedit on Linux.
    nable to init server: Could not connect: Connection refused
    (org.gnome.gedit:23095): Gtk-WARNING **: 12:12:52.224: cannot open display:

    • @s9209122222
      @s9209122222 5 лет назад

      It worked now, I need to add -X in ssh, but it is so slow.

    • @dingokidneys
      @dingokidneys 5 лет назад

      @@s9209122222 You can try using compression by specifying the '-C' command line parameter. It might help though the man page says it can slow things down over a fast link. That doesn't seem to be your problem. :)

    • @s9209122222
      @s9209122222 5 лет назад

      @@dingokidneys It is faster, but it still crashes a lot though.

  • @NoEgg4u
    @NoEgg4u 5 лет назад

    Is there a Linux package that is similar to the Windows version of Remote Desktop?
    I would like to remotely control a Linux box, from a local Linux box.
    I am currently doing this between two Windows Pro boxes. But I want to escape (divorce myself) from Windows, and am looking for a Linux alternative.
    Thank you.

    • @klightspeed
      @klightspeed 5 лет назад +1

      There are a few options:
      If it's on the internet, then use e.g. x11vnc on the server (or if it's headless then have it run something like tightvnc server), forward the VNC port over the SSH connection (using Local port forwarding - Connections -> SSH -> Tunnels in PuTTY, or the "-L localport:ip:hostport" option to ssh), and connect to that forwarded port using a VNC client.
      If it's on the local network, then have a VNC server (or x11vnc) running on the host, and connect directly to it using a VNC client.
      Alternatively, you can use X11 forwarding with the caveat that some programs won't work correctly if indirect rendering isn't configured.

    • @NoEgg4u
      @NoEgg4u 5 лет назад

      ​@@klightspeed I should have mentioned that Remote Desktop has an option to forward the video, but keep the audio local (which is what I need).
      I have two laptops:
      Laptop(#1) connects to a DAC (digital to analog converter). It is laptop #1 that feeds audio files, via a USB cable, to the DAC.
      Due to rather short distances, for which a USB cable can function properly, I keep laptop #1 close to the DAC, and use a 1 meter USB cable.
      Laptop #2 sits on my lap (~20 feet away from laptop #1), and connects to laptop #1, via an Ethernet cable. So laptop #2 is really just an overblown, fancy remote control, that lets me control laptop #1.
      A key issue is that the audio, from laptop #1, must not be sent to laptop #2. The audio must be allowed to do its normal processing, which is to feed audio to the DAC (not to feed laptop #2).
      This works fine, with Windows and Remote Desktop. But I really want to cast off and be done with anything and everything that is Windows. But I must make sure that I can do this, via Linux, before pulling the trigger. There are any number of Linux distros that should work great. But the remote control aspect is my main obstacle.
      Thanks for your help.

    • @klightspeed
      @klightspeed 5 лет назад +1

      @@NoEgg4u VNC does not by itself forward any audio - it only handles video, input, and some client/server combinations support clipboard. X11 also does not itself handle audio - only video, input, and clipboard.
      VNC acts more like remote desktop, except that it does not completely take over the session. i.e. instead of blanking the screen on Laptop #1, it will continue to display on Laptop #2 while you are controlling it from Laptop #1.
      X11 forwarding is inappropriate if you want to control an existing session.
      If you really want RDP, then there's always XRDP (which supports clipboard and drive forwarding).

    • @NoEgg4u
      @NoEgg4u 5 лет назад

      @@klightspeed Good to know. Thank you.

  • @abdallahtarek1213
    @abdallahtarek1213 5 лет назад

    Am using debian 10 buster
    I have laptop comes with
    Dual graphics card intel hd520
    And Amd radeon r5 m430
    As default debian using intel hd 520 and I want to use Amd r5 m439 how i can do that
    Because I want to use Davinci resolve 16 on my laptop
    Video editor

    • @dingokidneys
      @dingokidneys 5 лет назад

      askubuntu.com/questions/1068343/switch-between-intel-amd-gpu-on-18-04
      Have a look at this article. It links to several solutions.
      By the way, the question is not really on topic.
      Good luck.

  • @sagargupta9014
    @sagargupta9014 5 лет назад

    hello how to setup ubuntu desktop environment on AWS EC2 server

    • @dingokidneys
      @dingokidneys 5 лет назад

      devopscube.com/setup-gui-for-amazon-ec2-linux/
      I'd start here.

  • @mithubopensourcelab482
    @mithubopensourcelab482 5 лет назад

    I have watched almost all your YT Video's. They are awesome.... Great going. Will surely be pleased to watch something on remote-desktop session in Linux. Many people wants Windows Terminal Server type capabilities. Hope you would consider at some point.
    Thanks in advance and love from India.

  • @s9209122222
    @s9209122222 5 лет назад +1

    I can open gedit via SSH in Windows? I didn't know it and never tried it before.
    Is X11 forwarding safe?

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад +1

      Yes and Yes... X11 goes through the SSH tunnel so it is just as safe as your SSH connection.

  • @benriful
    @benriful 5 лет назад +1

    To get those more complex programs to run over a remote connections you should at least use VNC instead of just normal X11. It handles the more complicated stuff easier, but it's a full desktop remote control. Also, VNC has no encryption of its own, so you should be piping it through SSH: www.techrepublic.com/article/how-to-connect-to-vnc-using-ssh/
    Personally though, I prefer the NX protocol instead. It is much more responsive and tends to even handle 1080p gaming at 60fps over an ethernet cable. Simplest way to use this is to install the proprietary NoMachine version.

    • @dingokidneys
      @dingokidneys 5 лет назад

      VNC and perhaps NX usually grab control of the current display so if someone's using the machine that you want to get into, suddenly the mouse starts moving on its own and everything you're doing is displayed to someone else. Using X11 and the server machine's display manager, you can get your own desktop so you don't interfere with someone else's session.

    • @benriful
      @benriful 5 лет назад

      @@dingokidneysThat's true but you can also start them onto a separate "terminal " screen. In fact the default for some VNC servers is to login a new session each time . Allowing multiple concurrent desktop shares with separate users running each one.
      NX not so much no, though for what Chris was doing (i.e. run something from a server and him being the only one to do so) this is perfectly adequate. You could also force it to login to separate user accounts in order for each to have its own session. Which is actually a very good idea if you have multiple concurrent remote users, else you get stuff like file lock conflicts which isn't always easy to diagnose when one username has multiple locks on the same file.

  • @hestiahelios7431
    @hestiahelios7431 2 года назад

    What do they mean by this:
    X11 forwarding should be enabled with caution. Users with the ability
    to bypass file permissions on the remote host (for the user's X autho‐
    rization database) can access the local X11 display through the for‐
    warded connection. An attacker may then be able to perform activities
    such as keystroke monitoring.
    For this reason, X11 forwarding is subjected to X11 SECURITY extension
    restrictions by default. Please refer to the ssh -Y option and the
    ForwardX11Trusted directive in ssh_config(5) for more information.
    (Debian-specific: X11 forwarding is not subjected to X11 SECURITY ex‐
    tension restrictions by default, because too many programs currently
    crash in this mode. Set the ForwardX11Trusted option to “no” to re‐
    store the upstream behaviour. This may change in future depending on
    client-side improvements.)

    • @killertigergaming6762
      @killertigergaming6762 Год назад

      Basically to simplify it enabling ssh decreases security and can cause issues

  • @WandererOfWorlds0
    @WandererOfWorlds0 5 лет назад

    Why Putty instead of WSL?

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад +1

      WSL requires a bit of setup where PuTTY is a very simplistic install.

  • @1pcfred
    @1pcfred 5 лет назад

    This guy would freak out with a nfs share.

  • @uumas8427
    @uumas8427 5 лет назад

    No. Ssh isn't vulnerable unless of course you use a bad password and have password auth enabled.

  • @terry.chootiyaa
    @terry.chootiyaa 5 лет назад +1

    *Q. How to set up your own private APT PPA REPOSITORY server ? A: ???😐😐*

  • @awaka1234
    @awaka1234 5 лет назад +4

    Have a look at MobaXterm, way better than putty

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад

      Going to have to try this out! Thanks for the comment.

    • @dingokidneys
      @dingokidneys 5 лет назад +1

      @@ChrisTitusTech I was able to use MobaXterm from a work Windows Xen Desktop where I couldn't install software. Just drop the unzipped folder into an appropriate place and fire it up. I was able to administer Solaris and Linux machines at work as well as access GUI apps on my home machine via SSH straight through the firewall. Good times!

  • @guytech7310
    @guytech7310 5 лет назад +1

    FWIW: I think a PPTP & XRDP is a better solution since it enables remote access from any Windows machine. Most of time when I need remote access, its from a windows machine.

  • @nathanielescudero5379
    @nathanielescudero5379 4 года назад

    Just start at 1:55 and you'll save some of your life. Good guide though.

  • @quidpoksnapvids3019
    @quidpoksnapvids3019 4 года назад

    i want to do

  • @DesertFernweh
    @DesertFernweh 2 года назад

    You ever get really bored and log into a Linux box from a windows box, the use X11 forwarding to launch VNC to log back into the Windows Box.... No just me.... Ok then.

  • @master138
    @master138 2 года назад

    9:58 For Linux enjoyers

  • @geogmz8277
    @geogmz8277 3 года назад

    Well I've been pronouncing Nautilus the wrong way the whole time.. I say "Nauuu -Tee-Lus"

  • @quantumelectrodynamics8331
    @quantumelectrodynamics8331 2 года назад

    video actually starts at 1:55

  • @kneonspace
    @kneonspace 3 года назад

    I use mobaxterm is open-source ans free for personal use. Does forwarding auto magically and also has clients for a lot of other programs.

  • @mercuriete
    @mercuriete 5 лет назад

    Nice Video!!!!
    X11 Forwarding is perfect xD.
    From windows you can use MobaXterm to do X11 forwarding. It integrates a X Server as well.
    mobaxterm.mobatek.net/
    Some time ago I needed to change a partition layout to a production linux server and I don't wanted to mesh around with command line interfaces.
    ssh -Y server
    gparted &
    Yes, you can do it with fdisk, but sometimes I need the confidence of seing what will be the layout in a graphical manner. If gparted had a ncurses interface, I will use it.
    cfdisk seems to be a nice alternative that I hadn't the oportunity to test it.

  • @dumbllama8495
    @dumbllama8495 3 года назад

    this version of your studio was cooler.

  • @premier69
    @premier69 4 года назад

    video starts at 1:55

  • @zaubermaus8190
    @zaubermaus8190 5 лет назад

    Please... XMing was discontinued ages ago. i suppose some if not all problems you had might just come from this really old X server.
    So PLEASE check out MobaXTerm, it is an AWESOME X-Server which also has its own SSH terminals + RDP Shells, WSL Shells, Powershell, cmd, XDMCP sessions and whatnot.... a TON of configuration options, not only fonts, window features, you can have your terminals in the program itself or just detach them... an X-Server is automatically when the program starts AND i haven't run into your latency or other problems (i can run KDE Plasma on it no problem for example).
    Here is the link: mobaxterm.mobatek.net/

  • @uumas8427
    @uumas8427 5 лет назад

    Just use dns!

  • @DaveSomething
    @DaveSomething 5 лет назад

    I love PuTTY in Winders, but it's rather a piece of crap in Linux, imfo. I just "ssh user@addy" and login that way with shortcuts... not as convenient at first but I'm comfortable with it now. SSH is also great for file exploration and sharing, so much better than the shite that windows has for file sharing, I've not had ANY network file sharing issues since I ditched all the Microshaft crap in the house... with the exception of the one old craptop.

    • @DaveSomething
      @DaveSomething 5 лет назад

      oh, technically sftp... but still, it works better.

    • @1pcfred
      @1pcfred 5 лет назад +1

      @@DaveSomething I just setup a nfs share and mount it. Then it is like having files on the PC I am on.

    • @dingokidneys
      @dingokidneys 5 лет назад +1

      @@1pcfred Aaahh, an old fart like myself. Kudos good sir.
      The only real problem with NFS is permissions. You basically have to manage users on all the connected devices consistently and when you have numerous devices with different OS's and different usage patterns that becomes a bit of a headache.
      The joy of sharing data over ssh or sshfs is that whatever the user is on the client device, they come onto the server device as a known user access and permissions for whom are all managed centrally.
      SSHFS is great as most Linux file managers can just use it to connect to a remote system by just selecting Open Remote Location and putting 'ssh://192.168.x.xxx/shared_folder' into the address bar. Then create a shortcut and you're off, particularly if you've set up key based access rather than using passwords.

    • @1pcfred
      @1pcfred 5 лет назад +1

      @@dingokidneys it is just me and I just run Linux. So I have a file server with shares and I can access files from all of my other computers. I have a desktop and a PC that controls a CNC machine. So I make G-Code files on my desktop and get them onto my machine controller by putting those G-Code files on my file server and accessing it with my machine controller PC. Which runs LinuxCNC. Having a file server is handy if I ever set a PC up too. I can get whatever I need to put on it by just downloading it from my file server.

    • @dingokidneys
      @dingokidneys 5 лет назад

      @@1pcfred Sounds like a good setup for your purpose. Well done. I really like NFS in the right situation. It's fast and bullet proof and easy.

  • @darknight-coffee2329
    @darknight-coffee2329 5 лет назад

    du dürftest was langsammer sprechen in Deusch damit ich die English nicht so gut können genauso Mitkommmen . Ansonsten finde ich das Klasse. Habe dich mal Aboniert. Und vielleicht nutzt du mal das Forum mit und teilst dich dort mit deinen Dingen noch besser aus zusammen .English ist auch Möglich @carrabelloy.de justforfun-gaming.de/

  • @rajinkhan7611
    @rajinkhan7611 5 лет назад

    This is Second comment nd 8th like

  • @werohrndz1924
    @werohrndz1924 4 года назад

    10:00