Results 1 to 11 of 11

Thread: Enabling Remote Desktop and SSH access to Kali

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2019-Mar
    Location
    Western Canada
    Posts
    11

    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

Similar Threads

  1. Replies: 0
    Last Post: 2021-02-21, 19:36
  2. Replies: 3
    Last Post: 2020-06-03, 07:45
  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
  •