Results 1 to 7 of 7

Thread: Enabling Remote Desktop and SSH access to Kali

  1. #1
    Join Date
    2019-Mar
    Location
    Western Canada
    Posts
    9

    Enabling Remote Desktop and SSH access to Kali

    There are multiple ways to access a Kali system remotely. Traditionally, remote access to a kali system would be performed with a text only console using SSH. There is also a method of accessing kali and getting a full desktop environment. This can be particularly useful in cases where the Kali system is installed on a separate physical system and not in a virtual machine.

    Remote Desktop (GUI) access
    In Kali, open a terminal window and run the following commands. Substitute your username in place of ?mike? in the examples below:


    # adduser mike Add a user for remote login. Set a password and other info.
    # usermod -aG sudo mike Get an updated list of installable packages
    # apt-get update Get an updated list of installable packages
    # apt-get install xrdp Install the RDP server
    # systemctl start xrdp Start the base XRDP server
    # systemctl start xrdp-sesman Start the XRDP session manager


    1. Open your remote desktop client in Windows. Enter the address of your Kali system and connect. You will likely get prompted that the identity of the computer cannot be verified and asked if you wish to connect anyway. Say yes, and optionally set the checkbox to not be prompted again. When you get to the Kali login GUI, keep ?Xorg? as the session and use the username and password created earlier. Once logged in you will be able to use and interact with the Kali desktop.

    Assuming everything has worked to this point, you can enable XRDP to start automatically on subsequent boots with the following commands:
    # systemctl enable xrdp
    # systemctl enable xrdp-sesman

    Terminal (text-only) Access using SSH
    In Kali, open a terminal window and run the following commands:


    # adduser mike Add a user for remote login. Set a password and other info.
    # usermod -aG sudo mike Get an updated list of installable packages
    # systemctl start ssh Start the base ssh server

    On your PC, download and install Putty. Open putty. Enter the name or IP address of your Kali system in the Host Name field. Ensure the Port is set to 22 and the Connection Type field is ?SSH?. Click open.
    You may be prompted that the SSH keys are not in your system and asked if you wish to proceed anyway. Click yes. Login with your username and password that you previously setup. Remember these are case-sensitive.
    Last edited by yaksmen; 2020-02-10 at 05:25. Reason: Fixed a few typos

  2. #2
    Join Date
    2020-Jan
    Posts
    1
    For anyone who gets an error when running the above command :

    # apt-get install rdpInstall the RDP server

    This should actually be :

    # apt-get install xrdpInstall the RDP server

    Thanks @yaksmen this got me up and running with RDP nice and quick

  3. #3
    Join Date
    2020-Jan
    Posts
    1
    Great tutorial! Looks like it should be very useful.

    I do want to note, in the "Terminal" section you have:

    # systemctl start ssh Start the base XRDP server

    ... which is starting the SSH daemon, not the XRDP server so that comment may need to be changed!

  4. #4
    Join Date
    2019-Mar
    Location
    Western Canada
    Posts
    9
    Thanks very much for your comment @marl_scot! I have fixed it in the entry above as well.

  5. #5
    Join Date
    2019-Mar
    Location
    Western Canada
    Posts
    9
    Thanks for the comment @iditabad! Fixed in the original post :-)

  6. #6
    Join Date
    2019-Aug
    Posts
    2
    Hi

    Is this working on a 2020 Kali installation becuase a clean install of 20201b works up until clicking the `OK` button in XRDP and then screen goes black and the rdp session is terminated.

    Have made sure the colour depth is 16bit - any thoughts ?

    Regards

  7. #7
    Join Date
    2020-May
    Posts
    1
    Hi, I followed the steps and was able to RDP with root but not the user I use. myuser has sudo privileges. What I am missing? Thanks

Similar Threads

  1. Replies: 2
    Last Post: 2020-04-30, 11:03
  2. Kali with XRDP and windows remote desktop client
    By jwouter in forum General Archive
    Replies: 0
    Last Post: 2018-12-05, 10:13
  3. Raspberry Pi 3 - Kali Linux - Remote Access over 3G
    By markojic in forum ARM Archive
    Replies: 3
    Last Post: 2017-07-06, 15:27
  4. Remote access with SSH/TightVNC failed with new Kali 2.0
    By kali2 in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2016-02-25, 21:35
  5. Replies: 0
    Last Post: 2015-10-09, 01:01

Tags for this Thread

Posting Permissions

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