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,152 times
0
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/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
dpkg-repack --root=/mnt openssh-server

Raphael
- 8,035
-
my usb is visible on fdisk -l. but once i run mount command then it prompts error like file system not found. server file system ext2, but usb is FAT, any idea? – Rafiqul Islam Feb 02 '16 at 03:34
-
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
-
himanshu, i dont have remote connectivity with my server, thats why i am trying to install openssh from usb. – Rafiqul Islam Jan 25 '16 at 09:31
To do this please use sudo tasksel. But before that what is in your sources.list file? Upload it to http://pastebin.com/
Thanks
– Armand Bozsik Jan 24 '16 at 08:11Then if you successfully told APT to use this source instead of the online ones you can use the usual command to install.
Please note: the number of packages on a cd-rom are limited due to the size restrictions.
– Armand Bozsik Jan 24 '16 at 10:16