Re: ssh in network

2012-04-03 Thread Michael Havens
server is installed on all of them.

On Mon, Apr 2, 2012 at 2:45 PM, Dazed_75 lthiels...@gmail.com wrote:

 server needs to be installed on any and all machines you want to ssh TO.
 Server is the component/daemon that listens for a request to connect.

 On Mon, Apr 2, 2012 at 12:55 PM, Michael Havens bmi...@gmail.com wrote:

 guess what I just found out openssh-server wasn't installed  on the
 laptop. So I installed it and now  netstat has the same line on it that
 says port 22


   sudo netstat -antp | grep 22
   tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  433/sshd

 However, I still can't ssh to the ubuntu. But I scan ssh from  the ubuntu
 to the mint. Yipee!



 On Mon, Apr 2, 2012 at 9:26 AM, Michael Havens bmi...@gmail.com wrote:

 On Sun, Apr 1, 2012 at 7:28 PM, Lisa Kachold lisakach...@obnosis.com
 wrote:
 Are you colorblind?
 ^-- only slightly

 respond inline.

 ^---not sure what you mean.

 Let's address each item until we resolve things:
On Sun, Apr 1, 2012 at 5:49 PM, Michael Havens bmi...@gmail.com
 wrote:
 A route add command is not persistent past a reboot or network
 restart.
 It seems to have been. I rebooted and still can't ssh from the laptop
 to the ubuntu.
 But you couldn't also ssh BEFORE you did the route add so these are two
 different things.
 Yes I could. I could ssh from the laptop to the ubuntu (printserver)
 until I issued the command ' sudo ip route add 
 192.168.1.0/24http://192.168.0.1/24dev eth0' on the ubuntu on the advice 
 of my google search. Then I tried to
 delete it and add the proper route (192.168.0.1) but that didn't help any.

 Take down your wlan (are you using wicd?)

 ^---Wireless is now off. I don't know what Mint uses... it
 doesn't say.
 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  433/sshd

 ubuntu

 tcp0  0 0.0.0.0:139 0.0.0.0:*
 LISTEN  12243/smbd

 tcp0  0 0.0.0.0:445 0.0.0.0:*
 LISTEN  12243/smbd

 laptop

 Good you have sshd listening on port 22 on ubuntu.

 You do NOT have sshd (daemon) listening on your laptop.

 Be sure you have started it if you want to ssh to the laptop from
 ubuntu:

 # sudo /etc/init.d/ssh start

 In order to make sure ssh starts at boot in Ubuntu:

 # sudo update-rc.d ssh defaults -done

 Reference:  https://help.ubuntu.com/community/UbuntuBootupHowto

 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more

 # sudo iptables-save |more

 sudo locate Deny|more --no respose

 sudo locate iptables-save|more

 /sbin/iptables-save

 /usr/share/man/man8/iptables-save.8.gz

 enter

 # sudo iptables-save

 You are looking to see if your iptables is up and configured to
 firewall ssh.  Dump the response in here.

  bmike1@Michaels-PC:~$ sudo locate iptables-save
 /sbin/iptables-save
 /usr/share/man/man8/iptables-save.8.gz
 bmike1@Michaels-PC:~$


 Oops, sorry wrong link! ddclient is for opendns dynamic dns entries,
 that logs into your provider and resets a public ip when needed.  Turn it
 down for now:*
 # sudo /etc/init.d/ddclient stop*

 ^-done


 Here's how to set it up (once you get ssh setup); it requires an
 opendns account.
 http://ubuntuforums.org/showthread.php?t=1264710
 http://ubuntuforums.org/showthread.php?t=1264710
  ^--if you can remember please remind me 
 laterhttp://ubuntuforums.org/showthread.php?t=1264710

  http://ubuntuforums.org/showthread.php?t=1264710
 your system is updated, if it runs?  Correct?
 ^ Correct

 Check your /etc/nsswitch.conf file to be sure it has
 hosts: files dns Reference:
 http://www.faqs.org/docs/securing/chap6sec71.html
 I'm not sure what you want here. Here is the file:
 # /etc/nsswitch.conf
 passwd: compat
 group: compat
 shadow: compat
 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
 networks: files
 protocols: db files
 services: db files
 ethers: db files
 rpc: db files
 netgroup: nis

 Then ping each server before trying to reconnect with ssh.--- they
 ping both ways.

 I am pretty sure that this will work now that you have them both on the
 same network. Be sure you don't
 have any iptables running denying your port 22 on both servers!
 iptables -L doesn't have any deny rules in it

 I don't see any deny rules in my iptables.
 --
 :-)~MIKE~(-:




 --
 :-)~MIKE~(-:

 ---
 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




 --
 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 

Re: ssh in network

2012-04-03 Thread Dazed_75
and yet your previous message was that you discovered it was not installed
on the laptop.  Hence my reminder that it needs to be on any box you want
to ssh TO.  [?]

On Mon, Apr 2, 2012 at 11:08 PM, Michael Havens bmi...@gmail.com wrote:

 server is installed on all of them.


 On Mon, Apr 2, 2012 at 2:45 PM, Dazed_75 lthiels...@gmail.com wrote:

 server needs to be installed on any and all machines you want to ssh TO.
 Server is the component/daemon that listens for a request to connect.

 On Mon, Apr 2, 2012 at 12:55 PM, Michael Havens bmi...@gmail.com wrote:

 guess what I just found out openssh-server wasn't installed  on the
 laptop. So I installed it and now  netstat has the same line on it that
 says port 22




-- 
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.
330.gif---
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

Re: ssh in network

2012-04-03 Thread Michael Havens
yep. I even checked againafter I got /home working.

  openssh-server is already the newest version.
  openssh-server set to manually installed.
.

On Tue, Apr 3, 2012 at 8:31 AM, Dazed_75 lthiels...@gmail.com wrote:

 and yet your previous message was that you discovered it was not installed
 on the laptop.  Hence my reminder that it needs to be on any box you want
 to ssh TO.  [?]


 On Mon, Apr 2, 2012 at 11:08 PM, Michael Havens bmi...@gmail.com wrote:

 server is installed on all of them.


 On Mon, Apr 2, 2012 at 2:45 PM, Dazed_75 lthiels...@gmail.com wrote:

 server needs to be installed on any and all machines you want to ssh
 TO.  Server is the component/daemon that listens for a request to connect.

 On Mon, Apr 2, 2012 at 12:55 PM, Michael Havens bmi...@gmail.comwrote:

 guess what I just found out openssh-server wasn't installed  on the
 laptop. So I installed it and now  netstat has the same line on it that
 says port 22




 --
 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 - 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~(-:
330.gif---
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

Re: ssh in network

2012-04-02 Thread Dazed_75
server needs to be installed on any and all machines you want to ssh TO.
Server is the component/daemon that listens for a request to connect.

On Mon, Apr 2, 2012 at 12:55 PM, Michael Havens bmi...@gmail.com wrote:

 guess what I just found out openssh-server wasn't installed  on the
 laptop. So I installed it and now  netstat has the same line on it that
 says port 22


   sudo netstat -antp | grep 22
   tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  433/sshd

 However, I still can't ssh to the ubuntu. But I scan ssh from  the ubuntu
 to the mint. Yipee!



 On Mon, Apr 2, 2012 at 9:26 AM, Michael Havens bmi...@gmail.com wrote:

 On Sun, Apr 1, 2012 at 7:28 PM, Lisa Kachold lisakach...@obnosis.com
 wrote:
 Are you colorblind?
 ^-- only slightly

 respond inline.

 ^---not sure what you mean.

 Let's address each item until we resolve things:
On Sun, Apr 1, 2012 at 5:49 PM, Michael Havens bmi...@gmail.com
 wrote:
 A route add command is not persistent past a reboot or network restart.
 It seems to have been. I rebooted and still can't ssh from the laptop
 to the ubuntu.
 But you couldn't also ssh BEFORE you did the route add so these are two
 different things.
 Yes I could. I could ssh from the laptop to the ubuntu (printserver)
 until I issued the command ' sudo ip route add 
 192.168.1.0/24http://192.168.0.1/24dev eth0' on the ubuntu on the advice 
 of my google search. Then I tried to
 delete it and add the proper route (192.168.0.1) but that didn't help any.

 Take down your wlan (are you using wicd?)

 ^---Wireless is now off. I don't know what Mint uses... it
 doesn't say.
 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  433/sshd

 ubuntu

 tcp0  0 0.0.0.0:139 0.0.0.0:*
 LISTEN  12243/smbd

 tcp0  0 0.0.0.0:445 0.0.0.0:*
 LISTEN  12243/smbd

 laptop

 Good you have sshd listening on port 22 on ubuntu.

 You do NOT have sshd (daemon) listening on your laptop.

 Be sure you have started it if you want to ssh to the laptop from ubuntu:

 # sudo /etc/init.d/ssh start

 In order to make sure ssh starts at boot in Ubuntu:

 # sudo update-rc.d ssh defaults -done

 Reference:  https://help.ubuntu.com/community/UbuntuBootupHowto

 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more

 # sudo iptables-save |more

 sudo locate Deny|more --no respose

 sudo locate iptables-save|more

 /sbin/iptables-save

 /usr/share/man/man8/iptables-save.8.gz

 enter

 # sudo iptables-save

 You are looking to see if your iptables is up and configured to firewall
 ssh.  Dump the response in here.

  bmike1@Michaels-PC:~$ sudo locate iptables-save
 /sbin/iptables-save
 /usr/share/man/man8/iptables-save.8.gz
 bmike1@Michaels-PC:~$


 Oops, sorry wrong link! ddclient is for opendns dynamic dns entries,
 that logs into your provider and resets a public ip when needed.  Turn it
 down for now:*
 # sudo /etc/init.d/ddclient stop*

 ^-done


 Here's how to set it up (once you get ssh setup); it requires an opendns
 account.
 http://ubuntuforums.org/showthread.php?t=1264710
 http://ubuntuforums.org/showthread.php?t=1264710
  ^--if you can remember please remind me 
 laterhttp://ubuntuforums.org/showthread.php?t=1264710

  http://ubuntuforums.org/showthread.php?t=1264710
 your system is updated, if it runs?  Correct?
 ^ Correct

 Check your /etc/nsswitch.conf file to be sure it has
 hosts: files dns Reference:
 http://www.faqs.org/docs/securing/chap6sec71.html
 I'm not sure what you want here. Here is the file:
 # /etc/nsswitch.conf
 passwd: compat
 group: compat
 shadow: compat
 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
 networks: files
 protocols: db files
 services: db files
 ethers: db files
 rpc: db files
 netgroup: nis

 Then ping each server before trying to reconnect with ssh.--- they ping
 both ways.

 I am pretty sure that this will work now that you have them both on the
 same network. Be sure you don't
 have any iptables running denying your port 22 on both servers! iptables
 -L doesn't have any deny rules in it

 I don't see any deny rules in my iptables.
 --
 :-)~MIKE~(-:




 --
 :-)~MIKE~(-:

 ---
 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




-- 
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 

Re: ssh in network

2012-04-01 Thread Michael Havens
I was googling the 'no route to host' and found a suggestion to add a route
that poimts to the routerr with the command 'sudo ip route add
192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I did
not only could I not ssh out of the computer but I could no longer ssh into
the computer. I then tried to remove the route with the command 'sudo ip
route del 192.168.1.0/24 dev eth0', but that didn't help any. I just
realized that the ip address is wrong my router is 192.168.0.1 but:

  sudo ip route add 192.168.0.1/24 dev eth0
  RTNETLINK answers: Invalid argument

On Sat, Mar 31, 2012 at 4:36 PM, Lisa Kachold lisakach...@obnosis.comwrote:


 # apt-get install openssh-server


sudo apt-get install openssh-server
. . .
openssh-server is already the newest version.
openssh-server set to manually installed.



 You run a ssh server and you use a ssh client as a user.

 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


there it is. PermitRootLogin yes

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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/messages
 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
/var/log/syslog
tail: cannot open `/var/log/messages' for reading: No such file or directory
Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd /  run-parts
--report /etc/cron.hourly)
Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
/etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
bmike1@Michaels-PC:~$


 Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to connect
 from outside your internal network (once you open or port forward port 22).

 This is the hosts.allow file that I added. Does this look right?

ALL : 127.0.0.1
sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
192.168.$ this goes on to x.y.z.10/24
#shows address to use from outside of network#, 78.207.132.32




  Now the /etc/hosts.deny file:

 ALL : ALL



 Do this and your apt-get/aptitude will be fixed:

 # sudo apt-get install make



make is already its current version


-- 
:-)~MIKE~(-:
---
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

Re: ssh in network

2012-04-01 Thread Lisa Kachold
Reboot

On Sun, Apr 1, 2012 at 3:25 PM, Michael Havens bmi...@gmail.com wrote:

 I was googling the 'no route to host' and found a suggestion to add a
 route that poimts to the routerr with the command 'sudo ip route add
 192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I did
 not only could I not ssh out of the computer but I could no longer ssh into
 the computer. I then tried to remove the route with the command 'sudo ip
 route del 192.168.1.0/24 dev eth0', but that didn't help any. I just
 realized that the ip address is wrong my router is 192.168.0.1 but:

   sudo ip route add 192.168.0.1/24 dev eth0
   RTNETLINK answers: Invalid argument

 On Sat, Mar 31, 2012 at 4:36 PM, Lisa Kachold lisakach...@obnosis.comwrote:


 # apt-get install openssh-server


 sudo apt-get install openssh-server
 . . .
 openssh-server is already the newest version.
 openssh-server set to manually installed.



 You run a ssh server and you use a ssh client as a user.


 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


 there it is. PermitRootLogin yes

  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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/messages
 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
 /var/log/syslog
 tail: cannot open `/var/log/messages' for reading: No such file or
 directory
 Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd /  run-parts
 --report /etc/cron.hourly)
 Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 bmike1@Michaels-PC:~$


  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to connect
 from outside your internal network (once you open or port forward port 22).

 This is the hosts.allow file that I added. Does this look right?

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
 192.168.$ this goes on to x.y.z.10/24
 #shows address to use from outside of network#, 78.207.132.32




   Now the /etc/hosts.deny file:

 ALL : ALL



 Do this and your apt-get/aptitude will be fixed:

 # sudo apt-get install make



 make is already its current version


 --
 :-)~MIKE~(-:

 ---
 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




-- 
(503) 754-4452 Android
(623) 239-3392 Skype
(623) 688-3392 Google Voice
**
it-clowns.com
---
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

Re: ssh in network

2012-04-01 Thread Lisa Kachold
snip

I was googling the 'no route to host' and found a suggestion to add a route
 that poimts to the routerr with the command 'sudo ip route add
 192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I did
 not only could I not ssh out of the computer but I could no longer ssh into
 the computer. I then tried to remove the route with the command 'sudo ip
 route del 192.168.1.0/24 dev eth0', but that didn't help any. I just
 realized that the ip address is wrong my router is 192.168.0.1 but:

   sudo ip route add 192.168.0.1/24 dev eth0
   RTNETLINK answers: Invalid argument


A route add command is not persistent past a reboot or network restart.

Mike, ONE of your systems is on your Wireless and the other is on the
wired?  Sometimes wireless to wired connections take longer than the
timeout values for ssh or scp.  Try putting them both on either wireless or
wired and see if that's more successful?

Timeouts could be why you get a no route to host.

Verify that both boxes have a default route:

# sudo netstat -rn

Verify that both boxes have a listening ssh daemon:

# sudo netstat -antp | grep 22

Make sure you haven't installed DenyHosts or iptables that limits your
connections:

# locate Deny |more
# sudo iptables-save |more

If you don't understand the output post it to the list.


 # apt-get install openssh-server


 sudo apt-get install openssh-server
 . . .
 openssh-server is already the newest version.
 openssh-server set to manually installed.


 You run a ssh server and you use a ssh client as a user.

 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


 there it is. PermitRootLogin yes


Good! You can ssh to this host with root.


  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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
 /var/log/syslog
 tail: cannot open `/var/log/messages' for reading: No such file or
 directory
 Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd /  run-parts
 --report /etc/cron.hourly)
 Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 bmike1@Michaels-PC:~$


What - are you running ddclient for?
If you can't properly resolve DNS, you will not be able to ssh:

Please see this link regarding your ddclient errors:
http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/



  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to connect
 from outside your internal network (once you open or port forward port 22).

 This is the hosts.allow file that I added. Does this look right?

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
 192.168.$ this goes on to x.y.z.10/24
 #shows address to use from outside of network#, 78.207.132.32


No, you need that 78.207.132.32 on the SAME line with either ALL or sshd:
or commented out.

And 192.168.$ might cause problems.  Change it to a safe entry:
cut here
ALL : 127.0.0.1
sshd : 192.168.0.0/16, 78.207.132.32 http://192.168.0.0/24
###end ###

Make sure you did this:

   Now the /etc/hosts.deny file:

 ALL : ALL



 Do this and your apt-get/aptitude will be fixed:

 # sudo apt-get install make



 make is already its current version


# sudo apt-get update

Also setup your /etc/hosts file on both servers following these suggestions:
http://linux.about.com/od/commands/l/blcmdl5_hosts.htm

Should look like this (except with all your 

Re: ssh in network

2012-04-01 Thread Michael Havens
Now, instead of the 'no route to host' error I get a 'connection refused'.
I still can't ssh to the ubuntu machine. it times out.

On Sun, Apr 1, 2012 at 4:08 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 snip

 I was googling the 'no route to host' and found a suggestion to add a
 route that poimts to the routerr with the command 'sudo ip route add
 192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I
 did not only could I not ssh out of the computer but I could no longer ssh
 into the computer. I then tried to remove the route with the command 'sudo
 ip route del 192.168.1.0/24 dev eth0', but that didn't help any. I just
 realized that the ip address is wrong my router is 192.168.0.1 but:

   sudo ip route add 192.168.0.1/24 dev eth0
   RTNETLINK answers: Invalid argument


 A route add command is not persistent past a reboot or network restart.

 Mike, ONE of your systems is on your Wireless and the other is on the
 wired?  Sometimes wireless to wired connections take longer than the
 timeout values for ssh or scp.  Try putting them both on either wireless or
 wired and see if that's more successful?

 Timeouts could be why you get a no route to host.

 Verify that both boxes have a default route:

 # sudo netstat -rn

 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more
 # sudo iptables-save |more

 If you don't understand the output post it to the list.


 # apt-get install openssh-server


 sudo apt-get install openssh-server
 . . .
 openssh-server is already the newest version.
 openssh-server set to manually installed.


 You run a ssh server and you use a ssh client as a user.

 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


 there it is. PermitRootLogin yes


 Good! You can ssh to this host with root.


  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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
 /var/log/syslog
 tail: cannot open `/var/log/messages' for reading: No such file or
 directory
 Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd /  run-parts
 --report /etc/cron.hourly)
 Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 bmike1@Michaels-PC:~$


 What - are you running ddclient for?
 If you can't properly resolve DNS, you will not be able to ssh:

 Please see this link regarding your ddclient errors:

 http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/



  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to
 connect from outside your internal network (once you open or port forward
 port 22).

 This is the hosts.allow file that I added. Does this look right?

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
 192.168.$ this goes on to x.y.z.10/24
 #shows address to use from outside of network#, 78.207.132.32


 No, you need that 78.207.132.32 on the SAME line with either ALL or sshd:
 or commented out.

 And 192.168.$ might cause problems.  Change it to a safe entry:
 cut here
 ALL : 127.0.0.1
 sshd : 192.168.0.0/16, 78.207.132.32 http://192.168.0.0/24
 ###end ###

 Make sure you did this:

   Now the /etc/hosts.deny file:

 ALL : ALL



 Do this and your apt-get/aptitude will be fixed:

 # sudo apt-get install make



 

Re: ssh in network

2012-04-01 Thread Lisa Kachold
Michael, did you follow every suggestion in the last email?

Reboot
check and verify network and ssh daemons including default routes on both
machines
verify that you have the right settings in your /etc/hosts.allow and
/etc/hosts.deny files on both servers
add /etc/hosts entries for all your machines
verify that you don't have a DenyHost or iptables running
Test your ssh again

Also:
run apt-get update
look at why you are using ddclient and why it's failing [from the link I
sent]

??

On Sun, Apr 1, 2012 at 4:18 PM, Michael Havens bmi...@gmail.com wrote:

 Now, instead of the 'no route to host' error I get a 'connection refused'.
 I still can't ssh to the ubuntu machine. it times out.

 On Sun, Apr 1, 2012 at 4:08 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 snip

 I was googling the 'no route to host' and found a suggestion to add a
 route that poimts to the routerr with the command 'sudo ip route add
 192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I
 did not only could I not ssh out of the computer but I could no longer ssh
 into the computer. I then tried to remove the route with the command 'sudo
 ip route del 192.168.1.0/24 dev eth0', but that didn't help any. I just
 realized that the ip address is wrong my router is 192.168.0.1 but:

   sudo ip route add 192.168.0.1/24 dev eth0
   RTNETLINK answers: Invalid argument


 A route add command is not persistent past a reboot or network restart.

 Mike, ONE of your systems is on your Wireless and the other is on the
 wired?  Sometimes wireless to wired connections take longer than the
 timeout values for ssh or scp.  Try putting them both on either wireless or
 wired and see if that's more successful?

 Timeouts could be why you get a no route to host.

 Verify that both boxes have a default route:

 # sudo netstat -rn

 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more
 # sudo iptables-save |more

 If you don't understand the output post it to the list.


 # apt-get install openssh-server


 sudo apt-get install openssh-server
 . . .
 openssh-server is already the newest version.
 openssh-server set to manually installed.


 You run a ssh server and you use a ssh client as a user.

 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


 there it is. PermitRootLogin yes


 Good! You can ssh to this host with root.


  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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
 /var/log/syslog
 tail: cannot open `/var/log/messages' for reading: No such file or
 directory
 Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd /  run-parts
 --report /etc/cron.hourly)
 Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 bmike1@Michaels-PC:~$


 What - are you running ddclient for?
 If you can't properly resolve DNS, you will not be able to ssh:

 Please see this link regarding your ddclient errors:

 http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/



  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to
 connect from outside your internal network (once you open or port forward
 port 22).

 This is the hosts.allow file that I added. Does this look right?

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
 

Re: ssh in network

2012-04-01 Thread Michael Havens
I'm doing your suggestions right now. I don't know how I missed them
but after I sent the reply you are responding to I noticed them and started
the implemetation of them.  I did reboot and still ssh doesn't work. Just
wait until you get the response to your suggestion email. Sorry about the
confusion.

On Sun, Apr 1, 2012 at 4:50 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 Michael, did you follow every suggestion in the last email?

 Reboot
 check and verify network and ssh daemons including default routes on both
 machines
 verify that you have the right settings in your /etc/hosts.allow and
 /etc/hosts.deny files on both servers
 add /etc/hosts entries for all your machines
 verify that you don't have a DenyHost or iptables running
 Test your ssh again

 Also:
 run apt-get update
 look at why you are using ddclient and why it's failing [from the link I
 sent]

 ??


 On Sun, Apr 1, 2012 at 4:18 PM, Michael Havens bmi...@gmail.com wrote:

 Now, instead of the 'no route to host' error I get a 'connection
 refused'. I still can't ssh to the ubuntu machine. it times out.

 On Sun, Apr 1, 2012 at 4:08 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 snip

 I was googling the 'no route to host' and found a suggestion to add a
 route that poimts to the routerr with the command 'sudo ip route add
 192.168.1.0/24 dev eth0'. So I thought that sounded good  but after I
 did not only could I not ssh out of the computer but I could no longer ssh
 into the computer. I then tried to remove the route with the command 'sudo
 ip route del 192.168.1.0/24 dev eth0', but that didn't help any. I
 just realized that the ip address is wrong my router is 192.168.0.1 
 but:

   sudo ip route add 192.168.0.1/24 dev eth0
   RTNETLINK answers: Invalid argument


 A route add command is not persistent past a reboot or network restart.

 Mike, ONE of your systems is on your Wireless and the other is on the
 wired?  Sometimes wireless to wired connections take longer than the
 timeout values for ssh or scp.  Try putting them both on either wireless or
 wired and see if that's more successful?

 Timeouts could be why you get a no route to host.

 Verify that both boxes have a default route:

 # sudo netstat -rn

 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more
 # sudo iptables-save |more

 If you don't understand the output post it to the list.


 # apt-get install openssh-server


 sudo apt-get install openssh-server
 . . .
 openssh-server is already the newest version.
 openssh-server set to manually installed.


 You run a ssh server and you use a ssh client as a user.

 # ssh myusername@targetserverIP


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


 Make sure you used Root like
 # sudo grep Root /etc/ssh/sshd_config


 there it is. PermitRootLogin yes


 Good! You can ssh to this host with root.


  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:

 Hmmm?  Go look in var log and see what this system logs to:

 # sudo tail /var/log/syslog


 bmike1@Michaels-PC:~$ sudo tail /var/log/messages;sudo tail
 /var/log/syslog
 tail: cannot open `/var/log/messages' for reading: No such file or
 directory
 Apr  1 13:09:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:14:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:17:01 Michaels-PC CRON[8219]: (root) CMD (   cd / 
 run-parts --report /etc/cron.hourly)
 Apr  1 13:19:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:24:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:29:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:34:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:39:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:44:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 Apr  1 13:49:46 Michaels-PC ddclient[1763]: WARNING:  file
 /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
 bmike1@Michaels-PC:~$


 What - are you running ddclient for?
 If you can't properly resolve DNS, you will not be able to ssh:

 Please see this link regarding your ddclient errors:

 http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/



  Add this to 

Re: ssh in network

2012-04-01 Thread Michael Havens
A route add command is not persistent past a reboot or network restart.

It seems to have been. I rebooted and still can't ssh from the laptop to
the ubuntu.


 Mike, ONE of your systems is on your Wireless and the other is on the
 wired?  Sometimes wireless to wired connections take longer than the
 timeout values for ssh or scp.  Try putting them both on either wireless or
 wired and see if that's more successful?


okay I just connected the laptop to the router via a wire but it still
times out


 Timeouts could be why you get a no route to host.

 Verify that both boxes have a default route:

 # sudo netstat -rn


Kernel IP routing table print server
Destination Gateway Genmask Flags   MSS Window  irtt
Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG0 0  0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
eth0
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
eth0

Kernel IP routing table laptop
Destination Gateway Genmask Flags   MSS Window  irtt
Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG0 0  0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
wlan0
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
eth0
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
wlan0


 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 tcp0  0 0.0.0.0:22  0.0.0.0:*
LISTEN  433/sshd
ubuntu
tcp0  0 0.0.0.0:139 0.0.0.0:*
LISTEN  12243/smbd
tcp0  0 0.0.0.0:445 0.0.0.0:*
LISTEN  12243/smbd
laptop


 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more
 # sudo iptables-save |more

 sudo locate Deny|more --no respose
sudo locate iptables-save|more
  /sbin/iptables-save
  /usr/share/man/man8/iptables-save.8.gz


 What - are you running ddclient for?
 If you can't properly resolve DNS, you will not be able to ssh:

 I don't even know what ddclient is.
It must have been started automatically by something.


 Please see this link regarding your ddclient errors:

 http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/


I went to the link and found nothing regarding the ddclient warning. It was
only mentioned in the output of a  poster tail command.



  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to
 connect from outside your internal network (once you open or port forward
 port 22).

 This is the hosts.allow file that I added. Does this look right?

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 192.168.0.1/24, 192.168.0.2/24, 192.168.0.3/24,
 192.168.$ this goes on to x.y.z.10/24
 #shows address to use from outside of network#, 78.207.132.32


 No, you need that 78.207.132.32 on the SAME line with either ALL or
 sshd: or commented out.

 And 192.168.$ might cause problems.  Change it to a safe entry:
 ---that wa snly mores output to say there was more to it. it goes on
 to x.y.z.10/24 oh. now I see the error of my ways. 192.168 is in the
 /16 network. silly me!
 cut here
 ALL : 127.0.0.1
 sshd : 192.168.0.0/16, 78.207.132.32 http://192.168.0.0/24
 ###end ###


What is that 78.207.132.32 anyways? I know you say it is to connect to my
network from elsewhere but how would I do that? would it be ssh
78.207.132.32:user@computer?


 make is already its current version

 # sudo apt-get update -it still says it is the newest
 version



 Also setup your /etc/hosts file on both servers following these
 suggestions:
 http://linux.about.com/od/commands/l/blcmdl5_hosts.htm

 Should look like this (except with all your hostnames on your network -
 be sure to put the same one on all your linux boxes):

  127.0.0.1   localhost
  192.168.1.10foo.mydomain.org   foo
  192.168.1.13bar.mydomain.org   bar

 already done (file existed with the proper information.
---
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

Re: ssh in network

2012-04-01 Thread Lisa Kachold
Okay 

Are you colorblind?
Knowing one's limitations is good.  Now you can watch to make sure you
follow each email thread and address each item; I have noticed you miss
things frequently.  Linux troubleshooting is very specific; be careful to
read the full thread, and respond inline.

Let's address each item until we resolve things:

On Sun, Apr 1, 2012 at 5:49 PM, Michael Havens bmi...@gmail.com wrote:

 A route add command is not persistent past a reboot or network restart.

 It seems to have been. I rebooted and still can't ssh from the laptop to
 the ubuntu.


But you couldn't also ssh **BEFORE you did the route add so these are two
different things.



 Mike, ONE of your systems is on your Wireless and the other is on the
 wired?  Sometimes wireless to wired connections take longer than the
 timeout values for ssh or scp.  Try putting them both on either wireless or
 wired and see if that's more successful?


 okay I just connected the laptop to the router via a wire but it still
 times out


 Timeouts could be why you get a no route to host.

 Verify that both boxes have a default route:

 # sudo netstat -rn


 Kernel IP routing table print server
 Destination Gateway Genmask Flags   MSS Window  irtt
 Iface
 0.0.0.0 192.168.0.1 0.0.0.0 UG0 0  0
 eth0
 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
 eth0
 192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
 eth0


Good you have a default route via eth0.


 Kernel IP routing table laptop
 Destination Gateway Genmask Flags   MSS Window  irtt
 Iface
 0.0.0.0 192.168.0.1 0.0.0.0 UG0 0  0
 eth0
 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
 wlan0
 192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
 eth0
 192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0
 wlan0

 You have a default route to the 192.168.0.1 network, but you also have 2
routes to both eth0 and wlan0 (wireless and wired):

Take down your wlan (are you using wicd?)
Try first to use your Gnome or KDE to take down the wireless.

There are some known issues with wlan0 wireless slowness under Ubuntu:
http://www.hitxp.com/articles/software/ubuntu-fix-slow-wireless-internet-connection-speed-upgrading-11-04-natty-narwhal/

Essentially power management turns it down by default, so we just enter:

*# sudo iwconfig wlan0 power off*

So, let's concentrate on wired for now:

Leave it down for now, and just use your wired connection:

So after you turn off the Wireless using your Network settings by right
clicking the network wireless, enter at a terminal:

# sudo /etc/init.d/networking restart



 Verify that both boxes have a listening ssh daemon:

 # sudo netstat -antp | grep 22

 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  433/sshd
 ubuntu
 tcp0  0 0.0.0.0:139 0.0.0.0:*
 LISTEN  12243/smbd
 tcp0  0 0.0.0.0:445 0.0.0.0:*
 LISTEN  12243/smbd
 laptop

Good you have sshd listening on port 22 on ubuntu.
You do NOT have sshd (daemon) listening on your laptop.

Be sure you have started it if you want to ssh to the laptop from ubuntu:

# sudo /etc/init.d/ssh start

In order to make sure ssh starts at boot in Ubuntu:

# sudo update-rc.d ssh defaults

Reference:  https://help.ubuntu.com/community/UbuntuBootupHowto


 Make sure you haven't installed DenyHosts or iptables that limits your
 connections:

 # locate Deny |more
 # sudo iptables-save |more

 sudo locate Deny|more --no respose
 sudo locate iptables-save|more
   /sbin/iptables-save
   /usr/share/man/man8/iptables-save.8.gz

enter
# sudo iptables-save
You are looking to see if your iptables is up and configured to firewall
ssh.  Dump the response in here.



 What - are you running ddclient for?
  If you can't properly resolve DNS, you will not be able to ssh:

 I don't even know what ddclient is.
 It must have been started automatically by something.

ddclient is giving that error.



 Please see this link regarding your ddclient errors:

 http://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-connects-but-no-network-access-but-wired-works-880213/

 Oops, sorry wrong link! ddclient is for opendns dynamic dns entries, that
logs into your provider and resets a public ip when needed.  Turn it down
for now:

*# sudo /etc/init.d/ddclient stop*

Here's how to set it up (once you get ssh setup); it requires an opendns
account.
http://ubuntuforums.org/showthread.php?t=1264710


 I went to the link and found nothing regarding the ddclient warning. It
 was only mentioned in the output of a  poster tail command.



  Add this to /etc/hosts.allow:

   /etc/hosts.allow looks:

 ALL : 127.0.0.1
 sshd : 192.168.0.0/24, 78.207.132.32

 This example shows an external address you might want to use to
 connect from outside 

Re: ssh in network

2012-04-01 Thread Lisa Kachold
Sorry backwards; it should be

hosts:  files dns


On Sun, Apr 1, 2012 at 7:28 PM, Lisa Kachold

 Check your /etc/nsswitch.conf file to be sure it has

 hosts:  dns files  wrong see above

 Reference:  http://www.faqs.org/docs/securing/chap6sec71.html

 Then ping each server before trying to reconnect with ssh.

 I am pretty sure that this will work now that you have them both on the same 
 network.

 Be sure you don't have any iptables running denying your port 22 on both 
 servers!

















-- 
(503) 754-4452 Android
(623) 239-3392 Skype
(623) 688-3392 Google Voice
**
it-clowns.com
---
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

Re: ssh in network

2012-03-31 Thread Lisa Kachold
On Sat, Mar 31, 2012 at 12:58 PM, Michael Havens bmi...@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

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


 Can you run on both servers:
 # apt-get install nmap
 Then on each server:
 # nmap -PN 192.168.0.3
 # nmap -PN 192.168.0.4
 and post that?

 bmike1@Michaels-PC:/etc/init.d$ sudo nmap -PN 192.168.0.3

 Starting Nmap 5.21 ( http://nmap.org ) at 2012-03-31 12:38 MST
 Nmap scan report for 192.168.0.3
 Host is up (0.45s latency).
 Not shown: 992 closed ports
 PORT STATE SERVICE
 22/tcp   open  ssh
 80/tcp   open  http
 139/tcp  open  netbios-ssn
 443/tcp  open  https
 445/tcp  open  microsoft-ds
 631/tcp  open  ipp
 5800/tcp open  vnc-http
 5900/tcp open  vnc

 Nmap done: 1 IP address (1 host up) scanned in 0.80 seconds
 bmike1@Michaels-PC:/etc/init.d$ sudo nmap -PN 192.168.0.4

 Starting Nmap 5.21 ( http://nmap.org ) at 2012-03-31 12:38 MST
 Nmap scan report for Michaels-Laptop (192.168.0.4)
 Host is up (0.0076s latency).
 Not shown: 999 closed ports
 PORT   STATE SERVICE
 22/tcp open  ssh
 MAC Address: 94:39:E5:11:B8:84 (Unknown)

 Nmap done: 1 IP address (1 host up) scanned in 1.94 seconds
 bmike1@Michaels-PC:/etc/init.d$





 Michaels-Laptop ~ #
  The synaptic report is at 'a'.


   bmike1@Michaels-PC:~$ /etc/init.d/sshd start
   bash: /etc/init.d/sshd: No such file or directory
   bmike1@Michaels-PC:~$ ssh localhost
   ssh: connect to host localhost port 22: Connection refused
   bmike1@Michaels-PC:~$


 # cd /etc/init.d/
 # ls -al ssh*

 It's called /etc/init.d/ssh in Ubuntu
 https://help.ubuntu.com/10.04/serverguide/C/openssh-server.html


 bmike1@Michaels-PC:~$  cd /etc/init.d/
 bmike1@Michaels-PC:/etc/init.d$  ls -al ssh*
 -rwxr-xr-x 1 root root 4194 2011-07-29 09:02 ssh
 bmike1@Michaels-PC:/etc/init.d$ cd ssh
 bash: cd: ssh: Not a directory
 bmike1@Michaels-PC:/etc/init.d$ sudo ssh start
 [sudo] password for bmike1:  sat for five minutes
 ^Cbmike1@Michaels-PC:/etc/init.d$


 Okay that's possibly a path issue.

 if you are in the directory you would enter:

 # sudo ./ssh start

 otherwise


 # sudo /etc/init.d/ssh start


 Oh... I forgot the './' Bummer!  I thought this might make the ubuntu so
 that other machines could ssh into it but still connection times out.


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?

# grep Root /etc/ssh/sshd_config

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

Try your connection again!

# 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
# tail /var/log/secure

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?




 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.



 ---
 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




-- 
(503) 754-4452 Android
(623) 239-3392 Skype
(623) 688-3392 Google Voice
**
it-clowns.com
---
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

Re: ssh in network

2012-03-31 Thread Michael Havens
On Sat, Mar 31, 2012 at 1:21 PM, Lisa Kachold lisakach...@obnosis.comwrote:



 On Sat, Mar 31, 2012 at 12:58 PM, Michael Havens bmi...@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
bmike11750  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/300: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 

Re: ssh in network

2012-03-31 Thread Lisa Kachold
Mike:

On Sat, Mar 31, 2012 at 2:44 PM, Michael Havens bmi...@gmail.com wrote:



 On Sat, Mar 31, 2012 at 1:21 PM, Lisa Kachold lisakach...@obnosis.comwrote:



 On Sat, Mar 31, 2012 at 12:58 PM, Michael Havens bmi...@gmail.comwrote:


 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'.

Okay sorry it's

# apt-get install openssh-server


 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.


You run a ssh server and you use a ssh client as a user.

# ssh myusername@targetserverIP


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


Make sure you used Root like
# sudo grep Root /etc/ssh/sshd_config

You should see it (after openssh-server is installed) just look if it says
yes or no.



 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
 bmike11750  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/300: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

 Okay:

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


 # 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:

 Hmmm?  Go look in var log and see what this system logs to:

# sudo tail /var/log/messages
# sudo tail /var/log/syslog


 # 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


Add this to /etc/hosts.allow:

  /etc/hosts.allow looks:

ALL : 127.0.0.1
sshd : 192.168.0.0/24, 78.207.132.32

This example shows an external address you might want to use to connect
from outside your internal network (once you open or port forward port 22).

Now the /etc/hosts.deny file:

ALL : ALL







 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!

 Do this and your apt-get/aptitude will be fixed:

# sudo apt-get install make





 -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.

Re: ssh in network

2012-03-30 Thread Mike Ballon
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 bmi...@gmail.com 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 mike.bal...@gmail.com 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 bmi...@gmail.com 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 - 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
 ---
 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~(-:

 ---
 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
---
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


Re: ssh in network

2012-03-30 Thread Dazed_75
Make that:
Try sudo apt-get install openssh-server

On Fri, Mar 30, 2012 at 6:07 AM, Mike Ballon mike.bal...@gmail.com 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 bmi...@gmail.com 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 mike.bal...@gmail.com
 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:
 
  tcp0  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   anywherestate 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 bmi...@gmail.com
 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 - 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
  ---
  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~(-:
 
  ---
  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
 ---
 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




-- 
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 - 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

Re: ssh in network

2012-03-30 Thread Michael Havens
 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 lthiels...@gmail.com wrote:

 Make that:
 Try sudo apt-get install openssh-server


 On Fri, Mar 30, 2012 at 6:07 AM, Mike Ballon mike.bal...@gmail.comwrote:

 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 bmi...@gmail.com 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 mike.bal...@gmail.com
 wrote:
 
  I don't have an ubuntu box to show output exactly, hopefully this will
  get you 

Re: ssh in network

2012-03-30 Thread Mike Ballon
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 bmi...@gmail.com 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 lthiels...@gmail.com wrote:

 Make that:
 Try sudo apt-get install openssh-server


 On Fri, Mar 30, 2012 at 6:07 AM, Mike Ballon mike.bal...@gmail.com
 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 bmi...@gmail.com 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 

Re: ssh in network

2012-03-30 Thread Michael Havens
 dpkg --get-selections | grep openssh
openssh-clientinstall
openssh-serverdeinstall
dpkg --get-selections | grep linux-image
linux-image-3.0.0-12-genericinstall
linux-image-3.0.0-14-genericinstall
linux-image-3.0.0-15-genericdeinstall
linux-image-3.0.0-16-genericdeinstall
linux-image-3.0.0-17-genericdeinstall


On Fri, Mar 30, 2012 at 9:08 AM, Mike Ballon mike.bal...@gmail.com wrote:

 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 bmi...@gmail.com 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?
 

---
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

Re: ssh in network

2012-03-30 Thread Michael Havens
you know... I am having such problems that I think I should just reinstall
everything. What do you think?

On Fri, Mar 30, 2012 at 10:07 AM, Michael Havens bmi...@gmail.com wrote:

  dpkg --get-selections | grep openssh
 openssh-clientinstall
 openssh-serverdeinstall
 dpkg --get-selections | grep linux-image
 linux-image-3.0.0-12-genericinstall
 linux-image-3.0.0-14-genericinstall
 linux-image-3.0.0-15-genericdeinstall
 linux-image-3.0.0-16-genericdeinstall
 linux-image-3.0.0-17-genericdeinstall



 On Fri, Mar 30, 2012 at 9:08 AM, Mike Ballon mike.bal...@gmail.comwrote:

 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 bmi...@gmail.com
 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?
 




-- 
:-)~MIKE~(-:
---
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

Re: ssh in network

2012-03-30 Thread Mike Ballon
I'd say yes, not sure why there are two linux-image packages. Of
course I'm not an ubuntu expert  You can try to download the deb
package yourself and install with dpkg with a --force for a last ditch
effort. There is always grabbing the tarball and installing from
source as well :)

On Fri, Mar 30, 2012 at 2:25 PM, Michael Havens bmi...@gmail.com wrote:
 you know... I am having such problems that I think I should just reinstall
 everything. What do you think?


 On Fri, Mar 30, 2012 at 10:07 AM, Michael Havens bmi...@gmail.com wrote:

  dpkg --get-selections | grep openssh
 openssh-client                    install
 openssh-server                    deinstall
 dpkg --get-selections | grep linux-image
 linux-image-3.0.0-12-generic            install
 linux-image-3.0.0-14-generic            install
 linux-image-3.0.0-15-generic            deinstall
 linux-image-3.0.0-16-generic            deinstall
 linux-image-3.0.0-17-generic            deinstall



 On Fri, Mar 30, 2012 at 9:08 AM, Mike Ballon mike.bal...@gmail.com
 wrote:

 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 bmi...@gmail.com
 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?
 




 --
 :-)~MIKE~(-:

 ---
 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
---
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


Re: ssh in network

2012-03-29 Thread Mike Ballon
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:

tcp0  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   anywherestate 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 bmi...@gmail.com 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 - 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
---
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