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.
Asked
Active
Viewed 5,730 times
2 Answers
1
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/isoNow, mount the squash present in the iso:
sudo mount -o loop /media/iso/casper/filesystem.squashfs /mntTo retrieve your package, you need a tool called
dpkg-repackdpkg-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