Zoyinc
  • Home
  • Contact
  • Categories
    • CD Archiving
    • GIMP
    • Linux
    • MythTV
    • Open Media Vault
    • Technology
    • VMware
    • WordPress
    • YouTube
  • About


Enabling SSH access to Debian live USB

By

Tony

,

July 22, 2016

This is just a short post describing how you can USB boot from a Debian Live USB key and from this enable SSH access to the box. I do this often and it can be quite handy.

First create the USB key using the instructions in the post Create a Debian Live USB flash drive.

Then

1.Boot from the USB and select the “Live (586)” option.
2.Should you get timed out the password for the user “user” is “live”.
3.For Debian live you are not told the root password and you have to ‘sudo’ to do anything administrative.

 

We really need to do everything from now on as root so run:

sudo passwd root

to change the root password and then

sudo su - root
4.

Install the ssh server

sudo apt install openssh-server

Next we need to edit the “/etc/ssh/sshd_config” file to allow remote access. In this file change:

PermitRootLogin yes
PasswordAuthentication yes
5You need to restart the ssh daemon so run:

 

/etc/init.d/ssh restart
6.

You should work out the IP of the system by running:

ip address

Obviously the IP is the one listed:

eth0      Link encap:Ethernet  HWaddr 00:1b:78:50:5d:4a           inet addr:192.168.202.192  Bcast:192.168.202.255  Mask:255.255.255.0

You may find, like I did on one occasion that it only showed an IPv6 address for eth0, just restart the Debian live and hopefully it will be right the next time. For me I had left it idle for several days, maybe that was the issue.

7.At this point you should be able to connect to the system remotely, using Putty etc., but connect via the IP found from running ifconfig, in our case the IP was 192.168.202.237.
Related

Create a Debian Live USB flash drive
Access contents on a single disk from a Debian mirror array
Installing Open Media Vault
Replacing a system disk in Open Media Vault
Recent

  • AlmaLinux GUI – no taskbar or application shortcuts

    AlmaLinux GUI – no taskbar or application shortcuts

  • AlmaLinux 9.5 base VM

    AlmaLinux 9.5 base VM

  • Reset Kodi thumbnails

    Reset Kodi thumbnails

  • Set default settings values in Kodi skins

    Set default settings values in Kodi skins

  • Add/Remove/Reset music/video libraries in Kodi

    Add/Remove/Reset music/video libraries in Kodi

  • Zoyinc Kodi skin on Sony TV

    Zoyinc Kodi skin on Sony TV

  • [L] – WordPress UAM Locked Post

    [L] – WordPress UAM Locked Post

  • Import Pictures and Videos – images not previewed

    Import Pictures and Videos – images not previewed

  • Find My Train

    Find My Train

  • WordPress style name not visible

    WordPress style name not visible

About Zoyinc

  • Contact Us
  • Zoyinc Disclaimer
  • Google Search Console
  • Privacy Policy
  • Site Statistics
  • Login

Apache Auckland Backup CD CentOS Centos7 Children Configuration Debian Error ESX ESXi Fedora Firewall Install Josh Kids Kodi Linux MariaDB MySQL MythTV New Zealand OKD OMV Open Media Vault OpenShift PHP Player Python RAID RedHat Red Hat Rip School Setup SMB SonicWALL Spark tags Train Trains VLAN VM VMware Weaver Windows WordPress YouTube

Powered by

This site is licensed under a Creative Commons Attribution 4.0 International License.