Re: ssh in network

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Ballon
Date:  
To: Main PLUG discussion list
Subject: Re: ssh in network
Lets try the other route; what is your output to "dpkg
--get-selections | grep openssh" ?

Also post the output of dpkg --get-selections | grep linux-image" just for fun.

On Fri, Mar 30, 2012 at 11:49 AM, Michael Havens <> wrote:
>> Try sudo apt-get install openssh-server
> I've tried that and it won't install. I think it is because their are three
> packages in there that won't install (linux-image-3.0.0-15-generic,
> linux-image-3.0.0-16-generic, and linux-image-3.0.0-17-generic). How do I
> remove those packages?
>
> I just got a message from the gui update manager with instructions on maybe
> how to fix it (but it didn't) (a). The update manager was also talking about
> a distribution upgrade and needing to update three packages. I canceled out
> of that because the packages are all different versions and I don't want to
> do a distribution upgrade.
>
> -a-
> bmike1@Michaels-PC:~$ sudo apt-get install -f
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
>   linux-image-3.0.0-15-generic linux-image-3.0.0-16-generic
>   linux-image-3.0.0-17-generic
> 0 upgraded, 0 newly installed, 3 to remove and 3 not upgraded.
> 3 not fully installed or removed.
> After this operation, 351 MB disk space will be freed.
> Do you want to continue [Y/n]?
> (Reading database ... 246431 files and directories currently installed.)
> Removing linux-image-3.0.0-15-generic ...
> Examining /etc/kernel/postrm.d .
> run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-15-generic
> /boot/vmlinuz-3.0.0-15-generic
> update-initramfs: Deleting /boot/initrd.img-3.0.0-15-generic
> run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.0.0-15-generic
> /boot/vmlinuz-3.0.0-15-generic
> /etc/default/grub: 1: GNU: not found
> run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
> Failed to process /etc/kernel/postrm.d at
> /var/lib/dpkg/info/linux-image-3.0.0-15-generic.postrm line 328.
> dpkg: error processing linux-image-3.0.0-15-generic (--remove):
>  subprocess installed post-removal script returned error exit status 1
> No apport report written because MaxReports is reached already
>                                                               Removing
> linux-image-3.0.0-16-generic ...
> Examining /etc/kernel/postrm.d .
> run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-16-generic
> /boot/vmlinuz-3.0.0-16-generic
> update-initramfs: Deleting /boot/initrd.img-3.0.0-16-generic
> run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.0.0-16-generic
> /boot/vmlinuz-3.0.0-16-generic
> /etc/default/grub: 1: GNU: not found
> run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
> Failed to process /etc/kernel/postrm.d at
> /var/lib/dpkg/info/linux-image-3.0.0-16-generic.postrm line 328.
> dpkg: error processing linux-image-3.0.0-16-generic (--remove):
>  subprocess installed post-removal script returned error exit status 1
> No apport report written because MaxReports is reached already
>                                                               Removing
> linux-image-3.0.0-17-generic ...
> Examining /etc/kernel/postrm.d .
> run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-17-generic
> /boot/vmlinuz-3.0.0-17-generic
> update-initramfs: Deleting /boot/initrd.img-3.0.0-17-generic
> run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.0.0-17-generic
> /boot/vmlinuz-3.0.0-17-generic
> /etc/default/grub: 1: GNU: not found
> run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
> Failed to process /etc/kernel/postrm.d at
> /var/lib/dpkg/info/linux-image-3.0.0-17-generic.postrm line 328.
> dpkg: error processing linux-image-3.0.0-17-generic (--remove):
>  subprocess installed post-removal script returned error exit status 1
> No apport report written because MaxReports is reached already
>                                                               Errors were
> encountered while processing:
>  linux-image-3.0.0-15-generic
>  linux-image-3.0.0-16-generic
>  linux-image-3.0.0-17-generic
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> bmike1@Michaels-PC:~$
>
>
> On Fri, Mar 30, 2012 at 7:47 AM, Dazed_75 <> wrote:
>>
>> Make that:
>> Try "sudo apt-get install openssh-server"
>>
>>
>> On Fri, Mar 30, 2012 at 6:07 AM, Mike Ballon <>
>> wrote:
>>>
>>> I spun up an ubuntu-desktop VM. At least the desktop distro does not
>>> have sshd installed.
>>>
>>> Try "sudo apt-get install openssh--server"
>>>
>>> I also noticed the ubuntu doesn't use v5 init scripts so I guess it's
>>> "service ssh start", although after I installed it with the apt
>>> command above it was already running.
>>>
>>>
>>>
>>> On Thu, Mar 29, 2012 at 1:43 PM, Michael Havens <> wrote:
>>> > Thanks for the help Mike. But it didn't work.
>>> >
>>> >  bmike1@Michaels-PC:~$ sudo /etc/init.d/sshd start
>>> >  sudo: /etc/init.d/sshd: command not found
>>> >
>>> > I'm pretty dure that is because openssh-server Doesn't seem to be
>>> > installed.
>>> > I tried installing it but it won't install. I think it because it can't
>>> > remove
>>> >
>>> >  linux-image-3.0.0-15-generic
>>> >  linux-image-3.0.0-16-generic
>>> >  linux-image-3.0.0-17-generic
>>> >
>>> >
>>> > On Thu, Mar 29, 2012 at 5:54 AM, Mike Ballon <>
>>> > wrote:
>>> >>
>>> >> I don't have an ubuntu box to show output exactly, hopefully this will
>>> >> get you what you need just the same...
>>> >>
>>> >> type "netstat -a | grep ssh" on the print server host, you should get
>>> >> something like this:
>>> >>
>>> >> tcp        0      0 *:ssh                       *:*
>>> >>     LISTEN
>>> >>
>>> >> If you don't see the output above, then ssh is not listen and you'll
>>> >> need to type "sudo /etc/init.d/sshd start"
>>> >>
>>> >> Try the netstat command again...
>>> >>
>>> >> If, in the first time running netstat you DID see the output, check
>>> >> your firewall by typing "sudo /sbin/iptables -L | grep ssh", you
>>> >> should see something like this:
>>> >>
>>> >> ACCEPT     tcp  --  10.0.0.0/8           anywhere            state NEW
>>> >> tcp dpt:ssh
>>> >>
>>> >> If all that is correct the last thing to check is tcp wrappers, which
>>> >> probably are not as common as you once where, just cat out
>>> >> /etc/hosts.allow and /etc/hosts.deny for any related content.
>>> >>
>>> >> Cheers!
>>> >>
>>> >> On Tue, Mar 27, 2012 at 7:19 PM, Michael Havens <>
>>> >> wrote:
>>> >> > Okay.... I figured out why the virtual (debian) couldn't ssh to the
>>> >> > host
>>> >> > (mint). I didn't have openssh-server installed in the mint. Now they
>>> >> > are
>>> >> > talking with each other nicely! Unfortunately I can't go from the
>>> >> > either
>>> >> > of
>>> >> > those to the print-server (ubuntu). The errors given from both
>>> >> > computers
>>> >> > is
>>> >> > 'connection timed out'.
>>> >> > I can ssh from the ubuntu to  to the debian and the mint with no
>>> >> > problem.
>>> >> > When I verified that openssh-server was installed on the ubuntu with
>>> >> > apt
>>> >> > it
>>> >> > said:
>>> >> >
>>> >> >      openssh-server is already the newest version.
>>> >> >      openssh-server set to manually installed.
>>> >> >
>>> >> > So I'm not too sure what that means. I think that is saying that the
>>> >> > downloaddd package is the newest version but it isn't installed! If
>>> >> > I'm
>>> >> > correect on that point how do I install it and another question I
>>> >> > have
>>> >> > is
>>> >> > how do I get it to load on boot? I think that installing it will
>>> >> > take
>>> >> > care
>>> >> > of that but I just want to make sure.
>>> >> > --
>>> >> > :-)~MIKE~(-:
>>> >> >
>>> >> > ---------------------------------------------------
>>> >> > PLUG-discuss mailing list -
>>> >> > To subscribe, unsubscribe, or to change your mail settings:
>>> >> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>> >> ---------------------------------------------------
>>> >> PLUG-discuss mailing list -
>>> >> To subscribe, unsubscribe, or to change your mail settings:
>>> >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > :-)~MIKE~(-:
>>> >
>>> > ---------------------------------------------------
>>> > PLUG-discuss mailing list -
>>> > To subscribe, unsubscribe, or to change your mail settings:
>>> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list -
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>>
>>
>>
>> --
>> Dazed_75 a.k.a. Larry
>>
>> Please protect my address like I protect yours. When sending messages to
>> multiple recipients, always use the BCC: (Blind carbon copy) and not To: or
>> CC:. Remove all addresses from the message body before sending a Forwarded
>> message. This can prevent spy programs capturing addresses from the
>> recipient list and message body.
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
>
> --
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss