Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Need to access ubuntu remotely - installed but no access to display

  1. #1
    Join Date
    Mar 2014
    Location
    Triniadad
    Beans
    56

    Need to access ubuntu remotely - installed but no access to display

    Hi Guys,

    I need some help setting up Ubuntu so that when it boots up it automatically enables SSH, RDP and VNC.

    I have a raspberry Pi 4 that I installed Ubuntu on and cant access it over the network because upon install remote protocols seem disabled.

    I flashed the install to a SD Card reader and then put it n my Pi. after installation my Micro HDMI adapter to HDMI started failing and now i cant access it via display.

    Thing is on the Pi there is only micro HDMI. Because of Covid restrictions in my country all electronic stores are closed and i cannot purchase a Micro HDMI to HDMI adapter or order online (Couriers are shut down as well)

    I can put the SD card in a SD Card reader and access it on my laptop.

    Can someone help me to make the necessary changes to config files etc so that when i put it back in my raspberry Pi i can access it remotely?

    i know the ip address it will have when it boots up

    thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,790

    Re: Need to access ubuntu remotely - installed but no access to display

    You probably only need one of SSH, RDP or VNC and can do anything with SSH, so get that to work first.

    RDP and VNC are MS Windows compatibility things which are not needed when working with RaspPis from a Linux machine.

  3. #3
    Join Date
    Mar 2014
    Location
    Triniadad
    Beans
    56

    Re: Need to access ubuntu remotely - installed but no access to display

    "You probably only need one of SSH, RDP or VNC and can do anything with SSH, so get that to work first."

    Sure thing but how do i get access to SSH. is there a config file i can edit ???

  4. #4
    Join Date
    May 2010
    Beans
    3,240

    Re: Need to access ubuntu remotely - installed but no access to display

    Just run
    Code:
    sudo apt install openssh-server
    You will now be able to access the system using your favourite SSH client.
    Why do you want to access the full desktop on the remote system? What will you be doing on the desktop that needs the full desktop once you connect via VNC or RDP? There may be a sleeker solution to what you want to achieve

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Need to access ubuntu remotely - installed but no access to display

    Quote Originally Posted by robert71 View Post
    "You probably only need one of SSH, RDP or VNC and can do anything with SSH, so get that to work first."

    Sure thing but how do i get access to SSH. is there a config file i can edit ???
    To answer your specific question, yes, there is a config file for the ssh server; it's at /etc/ssh/sshd_config.
    It is a plain text file, like many linux config files, and there are several changes you can, and perhaps should, make to it.

    All the details are at https://help.ubuntu.com/community/SS...SH/Configuring which is definitely worth reading carefully.

  6. #6
    Join Date
    May 2010
    Beans
    3,240

    Re: Need to access ubuntu remotely - installed but no access to display

    The defaults in the sshd_config file are fairly sane and OK

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Need to access ubuntu remotely - installed but no access to display

    Quote Originally Posted by ActionParsnip View Post
    The defaults in the sshd_config file are fairly sane and OK
    But not as secure as they could be.

    For example, it is a great deal better to disable passwords to connect and always use the private/public key authentication that makes things a lot more secure.

  8. #8
    Join Date
    Mar 2014
    Location
    Triniadad
    Beans
    56

    Re: Need to access ubuntu remotely - installed but no access to display

    All the details are at https://help.ubuntu.com/community/SS...SH/Configuring which is definitely worth reading.



    So i read through this documentation and what i gather is that i need to edit

    /etc/ssh/sshd_config

    problem is that i dont have this file. in my /etc/ssh directory there is a folder called sshd_config

    Any ideas what to do here ?

  9. #9
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,790

    Re: Need to access ubuntu remotely - installed but no access to display

    On most UNIXes:
    $ sudo vi /etc/ssh/sshd_config

    If you have a directory there, see what is in it:
    $ sudo ls /etc/ssh/sshd_config

    then edit whatever you found:
    $ sudo vi /etc/ssh/sshd_config/whatever
    Last edited by HermanAB; May 30th, 2021 at 06:15 PM.

  10. #10
    Join Date
    Mar 2014
    Location
    Triniadad
    Beans
    56

    Re: Need to access ubuntu remotely - installed but no access to display

    Hi HermanAB,

    Thanks for your response but the directory is empty there are no files there.

    Should I just create a file called sshd_config ?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •