On Sat, Mar 31, 2012 at 1:21 PM, Lisa Kachold <lisakachold@obnosis.com> wrote:


On Sat, Mar 31, 2012 at 12:58 PM, Michael Havens <bmike1@gmail.com> wrote:

That means you "manually installed it". 

I did?

Just remove it:

# apt-get remove openssh-server
# apt-get add openssh-server
# /etc/init.d/ssh start

 
I just tried and those linux kernel updates  for
   linux-image-3.0.0-15-generic
   linux-image-3.0.0-16-generic
   linux-image-3.0.0-17-generic
still show up (and make me wait about 5 minutes for it to complete). (see 'a' at the end) After I removed it I tried the second command you gave me and it said 'command not found'.
Then I tried to ssh out of the ubuntu but got the connection refused error, so I reinstalled it and could again..
 
>Mike it looks like one of you systems is on the wireless and the other on the Wired.
Yes, that is correct. Both connected to the modem

 
That means that the connection times out.   Are you trying to ssh as root?  Sometimes root is excluded from connecting via /etc/ssh/sshd_config?

I thought that was the only way to run ssh.
 

# grep Root /etc/ssh/sshd_config <--------------- 'root' not in file

Okay, you can do (verify ssh):
# /etc/init.d/ssh status
or
# netstat -antp |grep ssh
or
# ps -ef |grep ssh <-------------------------------------- happily running

 ps -ef |grep ssh
bmike1    1750  1717  0 Mar27 ?        00:00:01 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=ubuntu
root      2607     1  0 13:51 ?        00:00:00 /usr/sbin/sshd -D
root      2942 29774  0 14:01 pts/3    00:00:00 grep --color=auto ssh
root@Michaels-PC:/etc/init.d#


Try your connection again!  <---------------- I can only ssh out of the ubuntu, (this is the step I figured out 'apt-get remove openssh-server' broke things

# ssh yourname@targetprintserverip

If the connection is seen on the host (but has some problem due to FQN (/etc/hosts) or /etc/hosts.allow files, it will be logged in either:

# tail /var/log/messages <--------------- no such file or directory
# tail /var/log/secure      <--------------- no such file or directory

Okay we see the ports open, so we don't have a firewall in the way. 

What is in your /etc/hosts.allow and /etc/hosts.deny on the ssh target?

 all lines are commented out., (see 'b' at end) Perhaps I should create an allowed range?

from my investigation of the man page that would look like this:

192.168.0.0/255.255.255.245 (to allow for 10 units)

is that correct?

then I guess uncomment 'paranoid' in the deny file

 



why did the sound stop working?

>>Another problem that just started is the sound on the print server stopped working. I clicked on the speaker icon >>to turn it up and I see it is maxed. So then I clicked 'sound settings' and the output volume is maxed so I >>investigate the tabs. The first tab (hardware) has nothing in the 'choose a device to configure' window. So >>somehow the driver was removed (I guess).


Which distro? 

Ubuntu (print server).

Okay you can post to the Ubuntu boards, or google the exact distro version [uname -a] with your question and find a great number of people who have already answered your question.



Thanks... I'll do just that!



-a-
 apt-get remove openssh-server
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  openssh-server ssh
0 upgraded, 0 newly installed, 2 to remove and 3 not upgraded.
3 not fully installed or removed.
After this operation, 938 kB disk space will be freed.
Do you want to continue [Y/n]?
Abort.
root@Michaels-PC:/etc/init.d# apt-get remove openssh-server
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  openssh-server ssh
0 upgraded, 0 newly installed, 2 to remove and 3 not upgraded.
3 not fully installed or removed.
After this operation, 938 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 259861 files and directories currently installed.)
Removing ssh ...
Removing openssh-server ...
ssh stop/waiting
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up linux-image-3.0.0-15-generic (3.0.0-15.26) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-15-generic
/etc/initramfs-tools/conf.d/resume.new: 1: GNU: not found
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
run-parts: executing /etc/kernel/postinst.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/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-15-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-15-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.0.0-16-generic (3.0.0-16.29) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-16-generic
/etc/initramfs-tools/conf.d/resume.new: 1: GNU: not found
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
run-parts: executing /etc/kernel/postinst.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/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-16-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.0.0-17-generic (3.0.0-17.30) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-17-generic
/etc/initramfs-tools/conf.d/resume.new: 1: GNU: not found
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
run-parts: executing /etc/kernel/postinst.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/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-17-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-17-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
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)
root@Michaels-PC:/etc/init.d# apt-get add openssh-server
E: Invalid operation add
root@Michaels-PC:/etc/init.d#


-b-

::::::::::::::
/etc/hosts.allow
::::::::::::::
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#

::::::::::::::
/etc/hosts.deny
::::::::::::::
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID

root@Michaels-PC:/etc/init.d#
 





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



--
:-)~MIKE~(-: