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.
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
If you have the
*.iso of your Ubuntu, then the debian package can be retrieved.
First mount your iso:
sudo mkdir /media/iso; sudo mount -o loop /path/to/iso /media/iso
Now, mount the squash present in the iso:
sudo mount -o loop /media/iso/casper/filesystem.squashfs /mnt
To retrieve your package, you need a tool called
dpkg-repack --root=/mnt openssh-server