0

Hi I have installed ubuntu from bootable usb. During installation I did not pay attention for Openssh server in software selection screen. however is it possible to reboot from usb to just install openssh only without affecting anything which is already installed and configured? Just like we install feature/server role in windows!!! Thanks. I dont have internet connection in my server yet. thanks.

2 Answers2

1

If you have the *.iso of your Ubuntu, then the debian package can be retrieved.

  1. First mount your iso:

    sudo mkdir /media/iso; sudo mount -o loop /path/to/iso /media/iso
    
  2. Now, mount the squash present in the iso:

    sudo mount -o loop /media/iso/casper/filesystem.squashfs /mnt
    
  3. To retrieve your package, you need a tool called dpkg-repack

    dpkg-repack --root=/mnt openssh-server
    
Raphael
  • 8,135
0

Rather, you can download the .deb file on any other machine which is connected to the Internet. Using the following command:

sudo apt-get install download openssh-server

The, install the .deb image on the server using the following command:

sudo dpkg -i /home/himanshu_code/Desktop/ssh.deb