Re: ssh -Y question

2012-10-16 Thread Dazed_75
Oh, BTW ufw is disabled on both boxes for the test.

On Tue, Oct 16, 2012 at 4:08 PM, Dazed_75 lthiels...@gmail.com wrote:

 I used to regularly do ssh -X user@machine or ssh -Y user@machine so I
 could run a graphical program on the remote machine and have the display on
 the machine I was sitting at.  In fact, I used to do this at installfests
 from my laptop (lapdog2) to the headless PXE server (fogtest) right next to
 me.  That stopped working months ago and I have not been able to figure out
 why or how to fix it.  Here is a sample of what I get:

 larry@hammerhead:~$ ssh -Y fogtest
 Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09
 UTC 2012 i686 GNU/Linux
 Ubuntu 10.04.4 LTS

 snip


 Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org
 larry@fogtest:~$ gedit
 GConf Error: Failed to contact configuration server; some possible causes
 are that you need to enable TCP/IP networking for ORBit, or you have stale
 NFS locks due to a system crash. See http://projects.gnome.org/gconf/for 
 information. (Details -  1: Failed to get connection to session: Failed
 to connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)
 ^C
 larry@fogtest:~$


 As you can see, the ssh connection is fine but using a graphical program
 like gedit does not. So I was making another attempt today (different
 target) and it worked:

 larry@hammerhead:~$ ssh -Y sunfish
 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

 22 packages can be updated.
 12 updates are security updates.

 Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
 larry@sunfish:~$ gedit
 larry@sunfish:~$


 Anyone know where to look or how to fix fogtest?

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




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

2012-10-16 Thread der.hans

Am 16. Oct, 2012 schwätzte Dazed_75 so:


I used to regularly do ssh -X user@machine or ssh -Y user@machine so I
could run a graphical program on the remote machine and have the display on
the machine I was sitting at.  In fact, I used to do this at installfests
from my laptop (lapdog2) to the headless PXE server (fogtest) right next to
me.  That stopped working months ago and I have not been able to figure out
why or how to fix it.  Here is a sample of what I get:

larry@hammerhead:~$ ssh -Y fogtest

Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09 UTC
2012 i686 GNU/Linux
Ubuntu 10.04.4 LTS

snip


echo $DISPLAY

Do you get something like localhost:10.0?

ciao,

der.hans


Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org

larry@fogtest:~$ gedit
GConf Error: Failed to contact configuration server; some possible causes
are that you need to enable TCP/IP networking for ORBit, or you have stale
NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for
information. (Details -  1: Failed to get connection to session: Failed to
connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)
^C
larry@fogtest:~$



As you can see, the ssh connection is fine but using a graphical program
like gedit does not. So I was making another attempt today (different
target) and it worked:

larry@hammerhead:~$ ssh -Y sunfish

Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

22 packages can be updated.
12 updates are security updates.

Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
larry@sunfish:~$ gedit
larry@sunfish:~$



Anyone know where to look or how to fix fogtest?




--
#  http://www.LuftHans.com/http://www.LuftHans.com/Classes/
#  Human kind cannot bear very much reality.
#-- T.S. Eliot, Four Quartets: Burnt Norton---
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 -Y question

2012-10-16 Thread Dazed_75
On Tue, Oct 16, 2012 at 4:12 PM, der.hans pl...@lufthans.com wrote:

 Am 16. Oct, 2012 schwätzte Dazed_75 so:


  I used to regularly do ssh -X user@machine or ssh -Y user@machine so I
 could run a graphical program on the remote machine and have the display
 on
 the machine I was sitting at.  In fact, I used to do this at installfests
 from my laptop (lapdog2) to the headless PXE server (fogtest) right next
 to
 me.  That stopped working months ago and I have not been able to figure
 out
 why or how to fix it.  Here is a sample of what I get:

 larry@hammerhead:~$ ssh -Y fogtest

 Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09
 UTC
 2012 i686 GNU/Linux
 Ubuntu 10.04.4 LTS

 snip


 echo $DISPLAY

 Do you get something like localhost:10.0?

 ciao,

 der.hans


Yes, both on the machine that works (sunfish) and the one that does not
(fogtest).



  Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org

 larry@fogtest:~$ gedit
 GConf Error: Failed to contact configuration server; some possible causes
 are that you need to enable TCP/IP networking for ORBit, or you have
 stale
 NFS locks due to a system crash. See 
 http://projects.gnome.org/**gconf/http://projects.gnome.org/gconf/for
 information. (Details -  1: Failed to get connection to session: Failed
 to
 connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)
 ^C
 larry@fogtest:~$


 As you can see, the ssh connection is fine but using a graphical program
 like gedit does not. So I was making another attempt today (different
 target) and it worked:

 larry@hammerhead:~$ ssh -Y sunfish

 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

 22 packages can be updated.
 12 updates are security updates.

 Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
 larry@sunfish:~$ gedit
 larry@sunfish:~$


 Anyone know where to look or how to fix fogtest?



 --
 #  http://www.LuftHans.com/
 http://www.LuftHans.com/**Classes/http://www.LuftHans.com/Classes/
 #  Human kind cannot bear very much reality.
 #-- T.S. Eliot, Four Quartets: Burnt Norton
 ---
 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 -Y question

2012-10-16 Thread der.hans

Am 16. Oct, 2012 schwätzte Dazed_75 so:


On Tue, Oct 16, 2012 at 4:12 PM, der.hans pl...@lufthans.com wrote:


Am 16. Oct, 2012 schwätzte Dazed_75 so:


 I used to regularly do ssh -X user@machine or ssh -Y user@machine so I

could run a graphical program on the remote machine and have the display
on
the machine I was sitting at.  In fact, I used to do this at installfests
from my laptop (lapdog2) to the headless PXE server (fogtest) right next
to
me.  That stopped working months ago and I have not been able to figure
out
why or how to fix it.  Here is a sample of what I get:

larry@hammerhead:~$ ssh -Y fogtest


Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09
UTC
2012 i686 GNU/Linux
Ubuntu 10.04.4 LTS

snip




echo $DISPLAY

Do you get something like localhost:10.0?

ciao,

der.hans



Yes, both on the machine that works (sunfish) and the one that does not
(fogtest).


OK, we might have to debug the gconf stuff :).

Before that, try starting a non-GNOME app such as xterm or xeyes.


 Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org



larry@fogtest:~$ gedit
GConf Error: Failed to contact configuration server; some possible causes
are that you need to enable TCP/IP networking for ORBit, or you have
stale
NFS locks due to a system crash. See 
http://projects.gnome.org/**gconf/http://projects.gnome.org/gconf/for
information. (Details -  1: Failed to get connection to session: Failed
to
connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)


ls -ld /tmp/dbus-*

Wonder if it's trying to use the wrong socket. There might be a stale
socket since you're running headless, but boot should fix that by cleaning
out /tmp. Does fogtest get shutdown or do you hibernate it?

The obvious solution is you need to start using vim :).

ciao,

der.hans


^C
larry@fogtest:~$



As you can see, the ssh connection is fine but using a graphical program
like gedit does not. So I was making another attempt today (different
target) and it worked:

larry@hammerhead:~$ ssh -Y sunfish


Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

22 packages can be updated.
12 updates are security updates.

Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
larry@sunfish:~$ gedit
larry@sunfish:~$



Anyone know where to look or how to fix fogtest?




--
#  http://www.LuftHans.com/
http://www.LuftHans.com/**Classes/http://www.LuftHans.com/Classes/
#  Human kind cannot bear very much reality.
#-- T.S. Eliot, Four Quartets: Burnt Norton
---
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








--
#  http://www.LuftHans.com/http://www.LuftHans.com/Classes/
#  When in doubt, choose the interesting. -- der.hans---
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 -Y question

2012-10-16 Thread Dazed_75
On Tue, Oct 16, 2012 at 4:25 PM, der.hans pl...@lufthans.com wrote:

 Am 16. Oct, 2012 schwätzte Dazed_75 so:

  On Tue, Oct 16, 2012 at 4:12 PM, der.hans pl...@lufthans.com wrote:

  Am 16. Oct, 2012 schwätzte Dazed_75 so:


  I used to regularly do ssh -X user@machine or ssh -Y user@machine so I

 could run a graphical program on the remote machine and have the display
 on
 the machine I was sitting at.  In fact, I used to do this at
 installfests
 from my laptop (lapdog2) to the headless PXE server (fogtest) right next
 to
 me.  That stopped working months ago and I have not been able to figure
 out
 why or how to fix it.  Here is a sample of what I get:

 larry@hammerhead:~$ ssh -Y fogtest

  Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09
 UTC
 2012 i686 GNU/Linux
 Ubuntu 10.04.4 LTS

 snip


  echo $DISPLAY

 Do you get something like localhost:10.0?

 ciao,

 der.hans



 Yes, both on the machine that works (sunfish) and the one that does not
 (fogtest).


 OK, we might have to debug the gconf stuff :).

 Before that, try starting a non-GNOME app such as xterm or xeyes.


Aaah, both work on both machines.  Not sure what to do from there.



   Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org


  larry@fogtest:~$ gedit
 GConf Error: Failed to contact configuration server; some possible
 causes
 are that you need to enable TCP/IP networking for ORBit, or you have
 stale
 NFS locks due to a system crash. See http://projects.gnome.org/
 gconf/ http://projects.gnome.org/**gconf/http://projects.gnome.**
 org/gconf/ http://projects.gnome.org/gconf/for

 information. (Details -  1: Failed to get connection to session: Failed
 to
 connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)


 ls -ld /tmp/dbus-*

 Wonder if it's trying to use the wrong socket. There might be a stale
 socket since you're running headless, but boot should fix that by cleaning
 out /tmp. Does fogtest get shutdown or do you hibernate it?

 The obvious solution is you need to start using vim :).

 ciao,

 der.hans

  ^C
 larry@fogtest:~$


  As you can see, the ssh connection is fine but using a graphical
 program
 like gedit does not. So I was making another attempt today (different
 target) and it worked:

 larry@hammerhead:~$ ssh -Y sunfish

  Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

 22 packages can be updated.
 12 updates are security updates.

 Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
 larry@sunfish:~$ gedit
 larry@sunfish:~$


  Anyone know where to look or how to fix fogtest?



  --
 #  http://www.LuftHans.com/
 http://www.LuftHans.com/Classes/http://www.LuftHans.com/**Classes/
 http://www.LuftHans.**com/Classes/ http://www.LuftHans.com/Classes/

 #  Human kind cannot bear very much reality.
 #-- T.S. Eliot, Four Quartets: Burnt Norton
 --**-
 PLUG-discuss mailing list - 
 plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss






 --
 #  http://www.LuftHans.com/
 http://www.LuftHans.com/**Classes/http://www.LuftHans.com/Classes/
 #  When in doubt, choose the interesting. -- der.hans
 ---
 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 -Y question

2012-10-16 Thread Lisa Kachold
Hi Larry!


On Tue, Oct 16, 2012 at 4:08 PM, Dazed_75 lthiels...@gmail.com wrote:

 I used to regularly do ssh -X user@machine or ssh -Y user@machine so I
 could run a graphical program on the remote machine and have the display on
 the machine I was sitting at.  In fact, I used to do this at installfests
 from my laptop (lapdog2) to the headless PXE server (fogtest) right next to
 me.  That stopped working months ago and I have not been able to figure out
 why or how to fix it.  Here is a sample of what I get:

 larry@hammerhead:~$ ssh -Y fogtest
 Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09
 UTC 2012 i686 GNU/Linux
 Ubuntu 10.04.4 LTS

 snip


 Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org
 larry@fogtest:~$ gedit
 GConf Error: Failed to contact configuration server; some possible causes
 are that you need to enable TCP/IP networking for ORBit, or you have stale
 NFS locks due to a system crash. See http://projects.gnome.org/gconf/for 
 information. (Details -  1: Failed to get connection to session: Failed
 to connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)
 ^C
 larry@fogtest:~$


 As you can see, the ssh connection is fine but using a graphical program
 like gedit does not. So I was making another attempt today (different
 target) and it worked:

 larry@hammerhead:~$ ssh -Y sunfish
 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

 22 packages can be updated.
 12 updates are security updates.

 Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
 larry@sunfish:~$ gedit
 larry@sunfish:~$


 Anyone know where to look or how to fix fogtest?

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


Well,

It could be a variety of things:

1.   dbus issues: Resolve by deleting ~/.dbus*
2.   Permissions: Press alt + F2 and type gksu gedit to verify or run via
root
3.   Issues with file corruption: sudo touch /forcefsck  sudo reboot


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

2012-10-16 Thread der.hans

Am 16. Oct, 2012 schwätzte Dazed_75 so:

moin moin,

what are the responses to my other questions from my last email?

ciao,

der.hans


On Tue, Oct 16, 2012 at 4:25 PM, der.hans pl...@lufthans.com wrote:


Am 16. Oct, 2012 schwätzte Dazed_75 so:

 On Tue, Oct 16, 2012 at 4:12 PM, der.hans pl...@lufthans.com wrote:


 Am 16. Oct, 2012 schwätzte Dazed_75 so:



 I used to regularly do ssh -X user@machine or ssh -Y user@machine so I


could run a graphical program on the remote machine and have the display
on
the machine I was sitting at.  In fact, I used to do this at
installfests
from my laptop (lapdog2) to the headless PXE server (fogtest) right next
to
me.  That stopped working months ago and I have not been able to figure
out
why or how to fix it.  Here is a sample of what I get:

larry@hammerhead:~$ ssh -Y fogtest

 Linux fogtest 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09

UTC
2012 i686 GNU/Linux
Ubuntu 10.04.4 LTS

snip



 echo $DISPLAY


Do you get something like localhost:10.0?

ciao,

der.hans




Yes, both on the machine that works (sunfish) and the one that does not
(fogtest).



OK, we might have to debug the gconf stuff :).

Before that, try starting a non-GNOME app such as xterm or xeyes.



Aaah, both work on both machines.  Not sure what to do from there.




  Last login: Mon Oct 15 16:37:44 2012 from sunfish.thiel.org




 larry@fogtest:~$ gedit

GConf Error: Failed to contact configuration server; some possible
causes
are that you need to enable TCP/IP networking for ORBit, or you have
stale
NFS locks due to a system crash. See http://projects.gnome.org/
gconf/ http://projects.gnome.org/**gconf/http://projects.gnome.**
org/gconf/ http://projects.gnome.org/gconf/for

information. (Details -  1: Failed to get connection to session: Failed
to
connect to socket /tmp/dbus-sjFuIo1Vhr: Connection refused)




ls -ld /tmp/dbus-*

Wonder if it's trying to use the wrong socket. There might be a stale
socket since you're running headless, but boot should fix that by cleaning
out /tmp. Does fogtest get shutdown or do you hibernate it?

The obvious solution is you need to start using vim :).

ciao,

der.hans

 ^C

larry@fogtest:~$


 As you can see, the ssh connection is fine but using a graphical

program
like gedit does not. So I was making another attempt today (different
target) and it worked:

larry@hammerhead:~$ ssh -Y sunfish

 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)


 * Documentation:  https://help.ubuntu.com/

22 packages can be updated.
12 updates are security updates.

Last login: Tue Aug 28 21:27:53 2012 from hammerhead.thiel.org
larry@sunfish:~$ gedit
larry@sunfish:~$


 Anyone know where to look or how to fix fogtest?




 --

#  http://www.LuftHans.com/
http://www.LuftHans.com/Classes/http://www.LuftHans.com/**Classes/
http://www.LuftHans.**com/Classes/ http://www.LuftHans.com/Classes/

#  Human kind cannot bear very much reality.
#-- T.S. Eliot, Four Quartets: Burnt Norton
--**-
PLUG-discuss mailing list - 
plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss








--
#  http://www.LuftHans.com/
http://www.LuftHans.com/**Classes/http://www.LuftHans.com/Classes/
#  When in doubt, choose the interesting. -- der.hans
---
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








--
#  http://www.LuftHans.com/http://www.LuftHans.com/Classes/
#  In order to live free and happily, you must sacrifice boredom.
#  It is not always an easy sacrifice.---
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 -Y question

2012-10-16 Thread Dazed_75
Sorry Hans, I doid not see the further questions.

On Tue, Oct 16, 2012 at 4:25 PM, der.hans pl...@lufthans.com wrote:

 Am 16. Oct, 2012 schwätzte Dazed_75 so:



 ls -ld /tmp/dbus-*

No such file

larry@fogtest:~$ ls -al /tmp/
 total 32
 drwxrwxrwt  7 root  root  4096 2012-10-16 15:28 ./
 drwxr-xr-x 24 root  root  4096 2012-04-27 00:13 ../
 drwx--  2 gdm   gdm   4096 2012-10-14 10:53 .esd-114/
 srwxr-xr-x  1 larry larry0 2012-10-16 15:28 gedit.larry.1810654947=
 drwxrwxrwt  2 root  root  4096 2012-10-14 10:53 .ICE-unix/
 drwx--  2 gdm   gdm   4096 2012-10-14 11:23 orbit-gdm/
 drwx--  2 gdm   gdm   4096 2012-10-14 10:53 pulse-PKdhtXMmr18n/
 -r--r--r--  1 root  root11 2012-10-14 10:53 .X0-lock
 drwxrwxrwt  2 root  root  4096 2012-10-14 10:53 .X11-unix/
 larry@fogtest:~$





 Wonder if it's trying to use the wrong socket. There might be a stale
 socket since you're running headless, but boot should fix that by cleaning
 out /tmp. Does fogtest get shutdown or do you hibernate it?


fogtest is always shut down when I move it or just want to not use it for a
lengthy time.



 The obvious solution is you need to start using vim :).


Not an option.  :)


 ciao,

 der.hans

-- 
Dazed_75 a.k.a. Larry
---
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 -Y question

2012-10-16 Thread Dazed_75
On Tue, Oct 16, 2012 at 4:35 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 Hi Larry!recipient list and message body

 Well,

 It could be a variety of things:

 1.   dbus issues: Resolve by deleting ~/.dbus*


on fogtest I assume?

in ~/.dbus are
.
└── session-bus
├── 1e1766b8883716105166c2a04daf2d37-0
└── 1e1766b8883716105166c2a04daf2d37-10
or
larry@fogtest:~/.dbus$ ll session-bus/
total 8
-rw-r--r-- 1 larry larry 467 2012-10-14 10:39
1e1766b8883716105166c2a04daf2d37-0
-rw-r--r-- 1 root  root  476 2011-08-18 18:55
1e1766b8883716105166c2a04daf2d37-10




 2.   Permissions: Press alt + F2 and type gksu gedit to verify or run via
 root

that does not work inside the ssh -Y session as it just brings up the Dash
in the local Unity system just as Ctr;-Alt-F1-6 open a console on the local
system.  Other Alt-Function keys in the ssh 0Y session print something like
escape sequences in the terminal.


 3.   Issues with file corruption: sudo touch /forcefsck  sudo reboot


 Nope, did the fsck route yesterday.

 --
 (503) 754-4452 Android
 (623) 239-3392 Skype
 (623) 688-3392 Google Voice
 **
 it-clowns.com
 Chief Clown















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

2012-10-16 Thread Lisa Kachold
Larry -

On Tue, Oct 16, 2012 at 5:04 PM, Dazed_75 lthiels...@gmail.com wrote:



 On Tue, Oct 16, 2012 at 4:35 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 Hi Larry!recipient list and message body

 Well,

 It could be a variety of things:

 1.   dbus issues: Resolve by deleting ~/.dbus*


 on fogtest I assume?

 in ~/.dbus are
 .
 └── session-bus
 ├── 1e1766b8883716105166c2a04daf2d37-0
 └── 1e1766b8883716105166c2a04daf2d37-10
 or
 larry@fogtest:~/.dbus$ ll session-bus/
 total 8
 -rw-r--r-- 1 larry larry 467 2012-10-14 10:39
 1e1766b8883716105166c2a04daf2d37-0
 -rw-r--r-- 1 root  root  476 2011-08-18 18:55
 1e1766b8883716105166c2a04daf2d37-10

 Remove all the ~.dbus-dession files!


Should work!



  2.   Permissions: Press alt + F2 and type gksu gedit to verify or run
 via root

 that does not work inside the ssh -Y session as it just brings up the Dash
 in the local Unity system just as Ctr;-Alt-F1-6 open a console on the local
 system.  Other Alt-Function keys in the ssh 0Y session print something like
 escape sequences in the terminal.


 3.   Issues with file corruption: sudo touch /forcefsck  sudo reboot


 Nope, did the fsck route yesterday.

 --


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

2012-10-16 Thread Matt Graham
From: Dazed_75 
 2.   Permissions: Press alt + F2 and type gksu gedit to verify or run via
 root
 that does not work inside the ssh -Y session as it just brings up the Dash
 in the local Unity system

Yeah, I'm not sure what's supposed to be going on here.  I'd check
/etc/ssh/sshd_config on the remote system and make sure that you have the
line

X11Forwarding yes

...in the remote system's sshd_config, because leaving that out will totally
hork up any attempt to use ssh -X or -Y.  Also:  ssh -v -Y remotehost, and
the additional output you get from the -v may tell you stupid error NNN has
happened in X11 forwarding.

I just tried this with xeyes, a GTK+ app, and gnome-terminal, but everything
worked and I didn't get any stupid errors.  

 sudo touch /forcefsck  sudo reboot
 Nope, did the fsck route yesterday.

I think if it'd been filesystem problems, you would've noticed other weirdness
before X forwarding problems.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see

---
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 -Y question [RESOLVED]

2012-10-16 Thread Dazed_75
Fixed by deleting the files in ~/.dbus/session-bus/ of fogtest.  Thanks
everyone!

Makes me wonder if those files (if any) shouldn’t be deleted automatically
on startup.  And what other cleanup should maybe be standard.
---
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 -Y question [RESOLVED]

2012-10-16 Thread Derek Trotter
I also would like to thank those who helped fix this.  I have one 
computer that has kubuntu 8 installed on it.  It's the older, slower 
machine that's a server and firewall.  The other computer is newer and 
faster.  It has the latest kubuntu and windoze on it.


There are a few games that run on the older machine.  When the new 
machine is running linux I use ssh -Y to access them.  So thanks to the 
nice people who figured this out, I have somewhere to look if I ever run 
into that problem.


On 10/16/2012 6:10 PM, Dazed_75 wrote:
Fixed by deleting the files in ~/.dbus/session-bus/ of fogtest.  
Thanks everyone!


Makes me wonder if those files (if any) shouldn't be deleted 
automatically on startup.  And what other cleanup should maybe be 
standard.



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


Re: ssh/scp

2012-03-16 Thread Michael Havens
thank you very much for the help guys. I even figured out I needed to put
option 'r' in there to copy  a directory. Just to verufy what I'm thinking-
the dot at the end of the command tells it to copy into your current
directory? That is what I thought it did so I issued the command from the
directory I wanted it in
hey. whenever there is a recursive option canI put '-r0' to tell it to
copy the directory but not descend into the tree or  a '-r1' to descend
into the tree one level, or '-r?' to descend (whatever number I put)  into
the tree?


==
Since 22 is open from PC to laptop you can simply scp in reverse:

scp 192.168.0.4:Pictures/2009-
Move.from.Florida .

I'm guessing the path of the pictures and take note of the dot at the end

On Thu, Mar 15, 2012 at 5:07 AM, Michael Havens bmi...@gmail.com wrote:
---
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/scp

2012-03-15 Thread Lisa Kachold
Hi Michael,

On Thu, Mar 15, 2012 at 2:07 AM, Michael Havens bmi...@gmail.com wrote:

 I want to copy a folder from Michaels-Laptop to Michaels-PC across the
 network. I am logged in to Michaels-Laptop via ssh on the PC. WHat am I
 doing wrong?

 bmike1@Michaels-PC:~$ ssh 192.168.0.4

 bmike1@192.168.0.4's password:
 Welcome to Linux Mint 12 Lisa (GNU/Linux 3.1.4-030104-generic i686)
 Welcome to Linux Mint
  * Documentation:  http://www.linuxmint.com
 Last login: Thu Mar 15 01:03:46 2012 from 192.168.0.3
 Traceback (most recent call last):
   File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization
 hooks. If Python could not import the module virtualenvwrapper.hook_loader,
 check that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
 Traceback (most recent call last):
   File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization
 hooks. If Python could not import the module virtualenvwrapper.hook_loader,
 check that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.


This ImportError: No module named virtualenvwrapper.hook_loader looks
like a virtualenv python packaging problem:
http://farmdev.com/thoughts/76/the-python-packaging-problem/
http://farmdev.com/thoughts/76/the-python-packaging-problem/%20

There is more available here, suggesting that you use
pythonbrewhttps://github.com/utahta/pythonbrewand the newer command
venv to manage your python modules:
http://ubuntuforums.org/showthread.php?t=1571347

Here's a quick pythonbrew/venv module how to:
http://pypi.python.org/pypi/pythonbrew/  It's a good possibility that it's
not setup for system wide users (make sure you change to use the same
version numbers for your install).

If you get the same errors, this is the packaging problem where virtualenv
has broken dependencies.


 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 bmike1@Michaels-PC:/home/bmike1/Pictures/
 Executing: program /usr/bin/ssh host Michaels-PC, user bmike1, command scp
 -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to Michaels-PC [204.232.231.46] port 22.
 debug1: connect to address 204.232.231.46 port 22: Connection timed out
 debug1: Connecting to Michaels-PC [66.152.109.24] port 22.
 debug1: connect to address 66.152.109.24 port 22: Connection timed out
 ssh: connect to host Michaels-PC port 22: Connection timed out
 lost connection


This means that port 22 is not open end to end, or you have not installed a
SSH daemon/exe binary.

# apt-get install nmap
# nmap  Michaels-PC


 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 192.168.0.3:/home/bmike1/Pictures/
 Executing: program /usr/bin/ssh host 192.168.0.3, user (unspecified),
 command scp -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
 debug1: connect to address 192.168.0.3 port 22: Connection timed out
 ssh: connect to host 192.168.0.3 port 22: Connection timed out
 lost connection
 bmike1@Michaels-Laptop ~/Pictures $


SSH daemon on Cygwin must be setup:
 
http://www.noah.org/ssh/cygwin-sshd.htmlhttp://www.noah.org/ssh/cygwin-sshd.html



 --
 :-)~MIKE~(-:


-- 
(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/scp

2012-03-15 Thread Mike Ballon
Since 22 is open from PC to laptop you can simply scp in reverse:

scp 192.168.0.4:Pictures/2009-Move.from.Florida .

I'm guessing the path of the pictures and take note of the dot at the end

On Thu, Mar 15, 2012 at 5:07 AM, Michael Havens bmi...@gmail.com wrote:
 I want to copy a folder from Michaels-Laptop to Michaels-PC across the
 network. I am logged in to Michaels-Laptop via ssh on the PC. WHat am I
 doing wrong?

 bmike1@Michaels-PC:~$ ssh 192.168.0.4

 bmike1@192.168.0.4's password:
 Welcome to Linux Mint 12 Lisa (GNU/Linux 3.1.4-030104-generic i686)
 Welcome to Linux Mint
  * Documentation:  http://www.linuxmint.com
 Last login: Thu Mar 15 01:03:46 2012 from 192.168.0.3
 Traceback (most recent call last):
   File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization hooks.
 If Python could not import the module virtualenvwrapper.hook_loader, check
 that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
 Traceback (most recent call last):
   File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization hooks.
 If Python could not import the module virtualenvwrapper.hook_loader, check
 that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 bmike1@Michaels-PC:/home/bmike1/Pictures/
 Executing: program /usr/bin/ssh host Michaels-PC, user bmike1, command scp
 -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to Michaels-PC [204.232.231.46] port 22.
 debug1: connect to address 204.232.231.46 port 22: Connection timed out
 debug1: Connecting to Michaels-PC [66.152.109.24] port 22.
 debug1: connect to address 66.152.109.24 port 22: Connection timed out
 ssh: connect to host Michaels-PC port 22: Connection timed out
 lost connection

 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 192.168.0.3:/home/bmike1/Pictures/
 Executing: program /usr/bin/ssh host 192.168.0.3, user (unspecified),
 command scp -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
 debug1: connect to address 192.168.0.3 port 22: Connection timed out
 ssh: connect to host 192.168.0.3 port 22: Connection timed out
 lost connection
 bmike1@Michaels-Laptop ~/Pictures $


 --
 :-)~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/scp

2012-03-15 Thread kitepi...@kitepilot.com
There is not SSH server running in 192.168.0.3 or you have a firewall 
blocking the port. 


From 192.168.0.3 do:
telnet localhost 22
If the connection dies, nothing will be able to connect EVEN if the SSH ser 
is running (which I doubt) 

Once you validate that the SSH server is running in 192.168.0.3, and 
accessible to localhost (127.0.0.1) then go to the other box and do:

telnet 192.168.0.3 22
If you don't get an answer, you have a firewall problem.
YMMV
ET 





Michael Havens writes: 


I want to copy a folder from Michaels-Laptop to Michaels-PC across the
network. I am logged in to Michaels-Laptop via ssh on the PC. WHat am I
doing wrong? 

bmike1@Michaels-PC:~$ ssh 192.168.0.4 


bmike1@192.168.0.4's password:
Welcome to Linux Mint 12 Lisa (GNU/Linux 3.1.4-030104-generic i686)
Welcome to Linux Mint
 * Documentation:  http://www.linuxmint.com
Last login: Thu Mar 15 01:03:46 2012 from 192.168.0.3
Traceback (most recent call last):
  File string, line 1, in module
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader, check
that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
Traceback (most recent call last):
  File string, line 1, in module
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader, check
that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly. 


bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
bmike1@Michaels-PC:/home/bmike1/Pictures/
Executing: program /usr/bin/ssh host Michaels-PC, user bmike1, command scp
-v -t -- /home/bmike1/Pictures/
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to Michaels-PC [204.232.231.46] port 22.
debug1: connect to address 204.232.231.46 port 22: Connection timed out
debug1: Connecting to Michaels-PC [66.152.109.24] port 22.
debug1: connect to address 66.152.109.24 port 22: Connection timed out
ssh: connect to host Michaels-PC port 22: Connection timed out
lost connection 


bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
192.168.0.3:/home/bmike1/Pictures/
Executing: program /usr/bin/ssh host 192.168.0.3, user (unspecified),
command scp -v -t -- /home/bmike1/Pictures/
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
debug1: connect to address 192.168.0.3 port 22: Connection timed out
ssh: connect to host 192.168.0.3 port 22: Connection timed out
lost connection
bmike1@Michaels-Laptop ~/Pictures $ 



--
:-)~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/scp

2012-03-15 Thread Michael Havens
1- telnet localhost 22 - didn't die
2-
bmike1@Michaels-PC:~$  ps -A | grep sshd
  467 ?00:00:00 sshd
bmike1@Michaels-PC:~$
bmike1@Michaels-Laptop ~ $ ps -A | grep sshd
 1176 ?00:00:00 sshd
27503 ?00:00:00 sshd
27609 ?00:00:00 sshd
bmike1@Michaels-Laptop ~ $
yep they're a running!
3- firewall problem it is! Connection timed out.

yeah... port 22 is closed
hmmm this discussion is now in two threads
I thought it was two problems but now I SEE IT IS ONE

On Thu, Mar 15, 2012 at 10:11 AM, kitepi...@kitepilot.com 
kitepi...@kitepilot.com wrote:

 There is not SSH server running in 192.168.0.3 or you have a firewall
 blocking the port.
 From 192.168.0.3 do:
 telnet localhost 22
 If the connection dies, nothing will be able to connect EVEN if the SSH
 ser is running (which I doubt)
 Once you validate that the SSH server is running in 192.168.0.3, and
 accessible to localhost (127.0.0.1) then go to the other box and do:
 telnet 192.168.0.3 22
 If you don't get an answer, you have a firewall problem.
 YMMV
 ET



 Michael Havens writes:

 I want to copy a folder from Michaels-Laptop to Michaels-PC across the
 network. I am logged in to Michaels-Laptop via ssh on the PC. WHat am I
 doing wrong?
 bmike1@Michaels-PC:~$ ssh 192.168.0.4
 bmike1@192.168.0.4's password:
 Welcome to Linux Mint 12 Lisa (GNU/Linux 3.1.4-030104-generic i686)
 Welcome to Linux Mint
  * Documentation:  http://www.linuxmint.com
 Last login: Thu Mar 15 01:03:46 2012 from 192.168.0.3
 Traceback (most recent call last):
  File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization
 hooks.
 If Python could not import the module virtualenvwrapper.hook_loader, check
 that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/**bin/python and that PATH is set properly.
 Traceback (most recent call last):
  File string, line 1, in module
 ImportError: No module named virtualenvwrapper.hook_loader
 virtualenvwrapper.sh: There was a problem running the initialization
 hooks.
 If Python could not import the module virtualenvwrapper.hook_loader, check
 that virtualenv has been installed for
 VIRTUALENVWRAPPER_PYTHON=/usr/**bin/python and that PATH is set
 properly.
 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 bmike1@Michaels-PC:/home/**bmike1/Pictures/
 Executing: program /usr/bin/ssh host Michaels-PC, user bmike1, command scp
 -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to Michaels-PC [204.232.231.46] port 22.
 debug1: connect to address 204.232.231.46 port 22: Connection timed out
 debug1: Connecting to Michaels-PC [66.152.109.24] port 22.
 debug1: connect to address 66.152.109.24 port 22: Connection timed out
 ssh: connect to host Michaels-PC port 22: Connection timed out
 lost connection
 bmike1@Michaels-Laptop ~/Pictures $ scp -v 2009-Move.from.Florida
 192.168.0.3:/home/bmike1/**Pictures/
 Executing: program /usr/bin/ssh host 192.168.0.3, user (unspecified),
 command scp -v -t -- /home/bmike1/Pictures/
 OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
 debug1: connect to address 192.168.0.3 port 22: Connection timed out
 ssh: connect to host 192.168.0.3 port 22: Connection timed out
 lost connection
 bmike1@Michaels-Laptop ~/Pictures $

 --
 :-)~MIKE~(-:

 --**-
 PLUG-discuss mailing list - 
 plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://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

Re: ssh fsarchiver

2012-02-21 Thread Michael Havens
hmmm that didn't work. it copied 3% of the device and then:

 can't write to the archive file. space on device is 0 bytes.

I ran out of room. so it isn't piping the output to the laptop. what am
I doing wrong?

I really want to use fs archiver because it copies the device and not what
it is mounted to.

On Tue, Feb 21, 2012 at 12:38 PM, Michael Havens bmi...@gmail.com wrote:

 Okay. I got the system back up so now it is time to play!~ By play I
 mean to backup that other computer using fsarchiver.
 So this is the command I think I should issue:

  fsarchiver -v -z9 -s700 savefs 2012-2-21 /dev/sda1 | ssh
 root@192.168.0.4 /mnt/entertainment/clones/IBM/2012-2-21

 in my eyes what this will do is use fsarchiver to save the contents of
 /dev/sda1 at a 'z'ip  level of 9 (the maximum lzma compression) 's'plit
 into 700 MB chunks (if I ever need to save it to CDs) and then send those
 results to the directory 2012-2-21 of a laptop. Will that work (in theory)?

 well, when I press enter the machine tells me that 2012-2-21 is a
 directory then starts its thing. My issue is that a new file doesn't appear
 in /mnt/entertainment/clones/IBM/2012-2-21 like it would with tar. Is that
 a problem? Does anyone know?
 --
 :-)~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

Re: ssh fsarchiver

2012-02-21 Thread Michael Havens
info about fsarchiver

One free tool you can use for this is [fsarchiver], which is a system
tool that allows you to save the contents of a file-system to a compressed
archive file. The file-system can be restored on a partition which has a
different size and it can be restored on a different file-system. Unlike
tar/dar, FSArchiver also creates the file-system when it extracts the data
to partitions. Everything is checksummed in the archive in order to protect
the data. If the archive is corrupt, you just loose the current file, not
the whole archive. Fsarchiver is released under the GPL-v2 license. It's
still under heavy development so it must not be used on critical data.,
So, you've been warned. Latest fsarchiver should be in the latest
[SystemRescueCD], although you can obtain it on your favourite recent
distribution.
---
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 fsarchiver

2012-02-21 Thread Brian Parma
last I read fsarchiver doesn't support stdin/stdout, which is the reason 
it hasn't replaced partimage on clonezilla.  To use it, just use sshfs 
to mount the remote ssh directory on your local machine and then tell 
fsarchiver to place it's archiver in that mount point.


On 02/21/2012 01:56 PM, Michael Havens wrote:

info about fsarchiver

One free tool you can use for this is [fsarchiver], which is a 
system tool that allows you to save the contents of a file-system to a 
compressed archive file. The file-system can be restored on a 
partition which has a different size and it can be restored on a 
different file-system. Unlike tar/dar, FSArchiver also creates the 
file-system when it extracts the data to partitions. Everything is 
checksummed in the archive in order to protect the data. If the 
archive is corrupt, you just loose the current file, not the whole 
archive. Fsarchiver is released under the GPL-v2 license. It's still 
under heavy development so it must not be used on critical data., 
So, you've been warned. Latest fsarchiver should be in the latest 
[SystemRescueCD], although you can obtain it on your favourite recent 
distribution.



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

2012-02-21 Thread Michael Havens
y h
thank you Brian!
I even figured out how to run sshfs on my own!

for anyone who happens upon this thread with the same problem here is what
I did:

sshfs ip of computer to save to:path of directory to save to mount
point

(sshfs basically mounts a remote directory)

then

fsarchiver [options] savefs mount point/filename device to save
---
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

2012-02-19 Thread Ben Browning
On Sat, Feb 18, 2012 at 11:25 PM, Michael Havens bmi...@gmail.com wrote:

 I got the ipaddress when I sshed from system rescue cd.
 Any ways, why won't it work with the word?

The word is a hostname... I imagine your rescue CD is not resolving
DNS properly. As always, the error message would probably clear things
up.

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

2012-02-19 Thread Michael Havens
this seems to be taking a long time. I'm wondering if something 'froze'. So
I type in 'top' and every once in a while the command 'bzip2' pops up. I
think that is a good sign seeing as how it is being compressed with bzip2.
Am I right? That reminds me, what is the extension for a bzip file (I need
to ensure the file was named it correctly).

On Sun, Feb 19, 2012 at 8:59 AM, Ben Browning b...@bensbrowning.com wrote:

 On Sat, Feb 18, 2012 at 11:25 PM, Michael Havens bmi...@gmail.com wrote:

  I got the ipaddress when I sshed from system rescue cd.
  Any ways, why won't it work with the word?

 The word is a hostname... I imagine your rescue CD is not resolving
 DNS properly. As always, the error message would probably clear things
 up.

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

Re: ssh

2012-02-19 Thread Michael Havens
 I think I know what the deal is! The first time I did this I did it with
fsarchiver and  I comp[ressed it with lzma which while compressing better
(and taking longer to do) the decompression is faster. To use lzma the
command would be:

 tar jcf - /dev/sda1 | ssh
fatherewithforeignbabies...@fatherswithforeignbabies.us 'tar xjf -' | lzma
-z -compressionlevel  -
  filename

Which would wrap sda1into a compressed tar ball and send the output to the
server where the tar ball would be extracted
and the following output would be compressed with lzma. Do I got that right?

I just found out I can't use the server for storage. So I suppose now the
command would be:

 tar cf - /dev/sda1 | tar xf - | lzma  -z -compressionlevel -
/dev/sda2/filename

Which would wrap sda1 into a tar ball and feed the output into lzma and
save the results to the second hard drive.
Well, if I'm going to do it that way couldn't I just drop the tar sections?
The result being:

 lzma -z -compression level /dev/sda2filename

One final advantage with fsarchiver is that it only compresses and
decompresses data. Empty space is ignored. As such the file can be
decompressed onto a partition of differing size than that it was compressed
from. Looking at the manpage fo lzma it doesn't seem to be able to do that.
Does anyone know the resource that might have been used to accomplish this?
---
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

2012-02-19 Thread Michael Havens
oops missed the source file!

lzma -z -compression level /dev/sda1 /dev/sda2filename
---
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

2012-02-19 Thread Michael Havens
h
that doesn't work. I tried it with and without option r (for recursive
which apparently it doesn't have how are you supposed to do
directories?) I know! Tar with no compression piped to lzma!
Whatever! I'm just going to use tar with option 'J'!

On Sun, Feb 19, 2012 at 11:20 PM, Michael Havens bmi...@gmail.com wrote:


 oops missed the source file!

 lzma -z -compression level /dev/sda1 /dev/sda3filename




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

2012-02-18 Thread Michael Havens
Well, I gave up on doing the archive with fsarchiver and just did it with
ssh (more as am in the process of creating). So now I can play with the
crashed drive with reckless abandon and not worry about losing data. If the
archive doesn't fail at least. Sorry about not listening to you before ET.

On Fri, Feb 17, 2012 at 10:08 AM, Walter Mack wm...@componentsw.com wrote:

  I never tried this, but what should work is this:


 tar --ignore-failed-read [/mnt/sda1] -czf - | ssh 
 remoteuser@remote.systemtar -xzf - | fsarchiver command

 You have to have the whole string that the remote shell is to execute into
 quotes, so it is important to OMIT the double quotes around the pipe
 characters.

 having a - as file name is interpreted to mean stdin or stdout (as
 appropriate). This is the key to avoiding these pesky temporarily files.
 tar will simply produce its output on stdout (locally), and consume the
 data from stdin (remotely).


 You might want to look into using rsync. That might be an easier (and
 probably better) solution for what you want to do.





 On 2/16/2012 11:42 PM, Michael Havens wrote:

 so wait a second could I put fsarchiver on the server and then:

 tar --ignore-failed-read [/mnt/sda1] -czf - | ssh 
 remoteuser@remote.systemtar -xzf - | fsarchiver command

 so the tar command will create a tarball and the the pipe will transfer
 the tarball to the server and extract it wich the second pipe will feed
 into fsarchiver. Is that correct? I have a question: what does the minus
 sign in front of the pipes represent?  Well... I know it represents the
 name of the tar ball but is it the name? Could I put anything in that
 place?

 and then Enriques command  (tar jcf - /path/to/backup|ssh user@otherbox'tar 
 xf -') would compress a tarball and then create a non compressed
 archive on the server.

 You know... I wondered if I could use scp for this. Investigating the man
 page reveals that this is the program I want to use. The text of the
 command that I should issue I think would be (I want to do this from a
 third computer):

 scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name

 I don't know if I assigned a user1 or a host1 name. How can I find this
 out? If I didn't how would I assign one or change it to a more appropriate
 name?

 This is fun!


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

Re: ssh

2012-02-18 Thread Michael Havens
Peculiar. I'm saving my archives to the server  but it is weird:
The computer wouldn't accept the command:

  'tar jcf - /dev/sda1 | ssh
fatherewithforeignbabies...@fatherswithforeignbabies.us catfilename

but only:

  'tar jcf - /dev/sda1 | ssh
fatherewithforeignbabies.us@75.136.0.160catfilename

I got the ipaddress when I sshed from system rescue cd.
Any ways, why won't it work with the word?


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

2012-02-17 Thread Stephen
To muddy the water more from the windows side you can use cygwin to get the
core Linux commands and use the same backup plan in place

You could even use rsync...

Linux has tons of ways to run backups...
On Feb 17, 2012 12:05 AM, Michael Havens bmi...@gmail.com wrote:

 cool after investigating further I've modified my command string.
 Could you show me how to make it right (I just assume I'm wrong anymore!)?

 scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
 user2@host2:desired/directory/file/name


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

2012-02-17 Thread kitepi...@kitepilot.com

Mike, take a look at 'rsync'.
ET 



Michael Havens writes: 

so wait a second could I put fsarchiver on the server and then: 


tar --ignore-failed-read [/mnt/sda1] -czf - | ssh
remoteuser@remote.systemtar -xzf - | fsarchiver command 


so the tar command will create a tarball and the the pipe will transfer the
tarball to the server and extract it wich the second pipe will feed into
fsarchiver. Is that correct? I have a question: what does the minus sign in
front of the pipes represent?  Well... I know it represents the name of the
tar ball but is it the name? Could I put anything in that place? 


and then Enriques command  (tar jcf - /path/to/backup|ssh
user@otherbox'tar xf -') would compress a tarball and then create a
non compressed
archive on the server. 


You know... I wondered if I could use scp for this. Investigating the man
page reveals that this is the program I want to use. The text of the
command that I should issue I think would be (I want to do this from a
third computer): 

scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name 


I don't know if I assigned a user1 or a host1 name. How can I find this
out? If I didn't how would I assign one or change it to a more appropriate
name? 


This is fun!

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

2012-02-17 Thread kitepi...@kitepilot.com
In order to ssh into a windoze box as user@host, you'll need to set up a SSH 
server in the windoze box and establish a shell to login into which will 
honor your commands (which all I have done in the past).

Have you considered alcoholism?
You may have a better shot...   :) 

As a rule of thumb, you initiate the backup of a windoze box FROM the box 
itself.

Unless you enjoy self-inflicted pain...
ET 




Michael Havens writes: 


one more thing how would I figure out the  user@host name of a windows
computer?
with that I'll be able to backup my brothers computer! 

On Thu, Feb 16, 2012 at 11:42 PM, Michael Havens bmi...@gmail.com wrote: 

so wait a second could I put fsarchiver on the server and then: 

tar --ignore-failed-read [/mnt/sda1] -czf - | ssh remoteuser@remote.systemtar -xzf - | fsarchiver command 


so the tar command will create a tarball and the the pipe will transfer
the tarball to the server and extract it wich the second pipe will feed
into fsarchiver. Is that correct? I have a question: what does the minus
sign in front of the pipes represent?  Well... I know it represents the
name of the tar ball but is it the name? Could I put anything in that
place? 


and then Enriques command  (tar jcf - /path/to/backup|ssh user@otherbox'tar xf 
-') would compress a tarball and then create a non compressed
archive on the server. 


You know... I wondered if I could use scp for this. Investigating the man
page reveals that this is the program I want to use. The text of the
command that I should issue I think would be (I want to do this from a
third computer): 

scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name 


I don't know if I assigned a user1 or a host1 name. How can I find this
out? If I didn't how would I assign one or change it to a more appropriate
name? 

This is fun! 

 



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

2012-02-17 Thread Michael Havens
hm not working. I wonder why. Any ideas?

bmike1@Michaels-Laptop ~ $ scp -r -o Compression yes -o CompressionLevel 9
-o HostName 192.168.0.3:mnt/sda1
fatherswithforeignbabies...@fatherswithforeignbabies.us:copies/2012-2-17
command-line line 0: Missing yes/no argument.
lost connection
bmike1@Michaels-Laptop ~ $

The yes/no argument is there though!
I tried putting the yes in quotes, capitalized, just y, and some others I
can't remember.

On Fri, Feb 17, 2012 at 12:05 AM, Michael Havens bmi...@gmail.com wrote:

 cool after investigating further I've modified my command string.
 Could you show me how to make it right (I just assume I'm wrong anymore!)?

 scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
 user2@host2:desired/directory/file/name




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

2012-02-17 Thread kitepi...@kitepilot.com

Mike, look at the path after the colon:
what that says is:
'copy whatever is inbound to a directory named mnt/sda1
located in my HOME directory'
Is that what you want?
Probably not...
ET 




Michael Havens writes: 

hm not working. I wonder why. Any ideas? 


bmike1@Michaels-Laptop ~ $ scp -r -o Compression yes -o CompressionLevel 9
-o HostName 192.168.0.3:mnt/sda1
fatherswithforeignbabies...@fatherswithforeignbabies.us:copies/2012-2-17
command-line line 0: Missing yes/no argument.
lost connection
bmike1@Michaels-Laptop ~ $ 


The yes/no argument is there though!
I tried putting the yes in quotes, capitalized, just y, and some others I
can't remember. 

On Fri, Feb 17, 2012 at 12:05 AM, Michael Havens bmi...@gmail.com wrote: 


cool after investigating further I've modified my command string.
Could you show me how to make it right (I just assume I'm wrong anymore!)? 


scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
user2@host2:desired/directory/file/name 



 


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

2012-02-17 Thread Michael Havens
hey. I figured out the username/hostid thing. the laptop is
'bmike1@Michaels-Laptop'. that was easy.

you're right... that isn't what I want. I thought that:

 scp -r -o Compression yes -o CompressionLevel 9 -o HostName
192.168.0.3:mnt/sda1
 fatherswithforeignbabies...@fatherswithforeignbabies.us:
copies/2012-2-17

would copy recursively 192.168.0.3 from /mnt/sda1 to the
server:folder/filename
How should I tell it to start from / rather than ~ ?


On Fri, Feb 17, 2012 at 8:30 AM, kitepi...@kitepilo.com 
kitepi...@kitepilot.com wrote:

 Mike, look at the path after the colon:
 what that says is:
 'copy whatever is inbound to a directory named mnt/sda1
 located in my HOME directory'
 Is that what you want? to th
 Probably not...
 ET


 Michael Havens writes:

 hm not working. I wonder why. Any ideas?
 bmike1@Michaels-Laptop ~ $ scp -r -o Compression yes -o CompressionLevel
 9
 -o HostName 192.168.0.3:mnt/sda1
 fatherswithforeignbabies.us@**fatherswithforeignbabies.us:co**
 pies/2012-2-17
 command-line line 0: Missing yes/no argument.
 lost connection
 bmike1@Michaels-Laptop ~ $
 The yes/no argument is there though!
 I tried putting the yes in quotes, capitalized, just y, and some others I
 can't remember.
 On Fri, Feb 17, 2012 at 12:05 AM, Michael Havens bmi...@gmail.com
 wrote:

 cool after investigating further I've modified my command string.
 Could you show me how to make it right (I just assume I'm wrong
 anymore!)?
 scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
 user2@host2:desired/directory/**file/name


 --
 :-)~MIKE~(-:

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


hey. I figured out the username/hostid thing. the laptop is
'bmike1@Michaels-Laptop'. that was easy.
-- 
:-)~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

2012-02-17 Thread kitepi...@kitepilot.com

How should I tell it to start from / rather than ~ ?

Instead of

192.168.0.3:mnt/sda1


Do:

192.168.0.3:/mnt/sda1

The path-resolution rules apply unchanged after the ':'
Do:
man path_resolution 



'Michaels-Laptop' will only resolve in 'Michaels-Laptop', unless you add 
that name/IP combo to some sort of name-resolution system (bind, /etc/hosts, 
many options to choose from) 

localhost (or 127.0.0.1) will resolve to 'this machine' (when properly 
configured, which is the case in most Linux installations if not all of 
them) 


Don't shot yourself on the foot.
Again...
ET 




Michael Havens writes: 


hey. I figured out the username/hostid thing. the laptop is
'bmike1@Michaels-Laptop'. that was easy. 

you're right... that isn't what I want. I thought that: 


 scp -r -o Compression yes -o CompressionLevel 9 -o HostName
192.168.0.3:mnt/sda1
 fatherswithforeignbabies...@fatherswithforeignbabies.us:
copies/2012-2-17 


would copy recursively 192.168.0.3 from /mnt/sda1 to the
server:folder/filename
How should I tell it to start from / rather than ~ ? 



On Fri, Feb 17, 2012 at 8:30 AM, kitepi...@kitepilo.com 
kitepi...@kitepilot.com wrote: 


Mike, look at the path after the colon:
what that says is:
'copy whatever is inbound to a directory named mnt/sda1
located in my HOME directory'
Is that what you want? to th
Probably not...
ET 



Michael Havens writes: 


hm not working. I wonder why. Any ideas?
bmike1@Michaels-Laptop ~ $ scp -r -o Compression yes -o CompressionLevel
9
-o HostName 192.168.0.3:mnt/sda1
fatherswithforeignbabies.us@**fatherswithforeignbabies.us:co**
pies/2012-2-17
command-line line 0: Missing yes/no argument.
lost connection
bmike1@Michaels-Laptop ~ $
The yes/no argument is there though!
I tried putting the yes in quotes, capitalized, just y, and some others I
can't remember.
On Fri, Feb 17, 2012 at 12:05 AM, Michael Havens bmi...@gmail.com
wrote: 


cool after investigating further I've modified my command string.
Could you show me how to make it right (I just assume I'm wrong
anymore!)?
scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
user2@host2:desired/directory/**file/name 




--
:-)~MIKE~(-: 


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



hey. I figured out the username/hostid thing. the laptop is
'bmike1@Michaels-Laptop'. that was easy.
--
:-)~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

2012-02-17 Thread Walter Mack

I never tried this, but what should work is this:

tar --ignore-failed-read [/mnt/sda1] -czf - | ssh 
remoteuser@remote.system mailto:remoteuser@remote.system tar -xzf - | 
fsarchiver command


You have to have the whole string that the remote shell is to execute 
into quotes, so it is important to OMIT the double quotes around the 
pipe characters.


having a - as file name is interpreted to mean stdin or stdout (as 
appropriate). This is the key to avoiding these pesky temporarily files. 
tar will simply produce its output on stdout (locally), and consume the 
data from stdin (remotely).



You might want to look into using rsync. That might be an easier (and 
probably better) solution for what you want to do.





On 2/16/2012 11:42 PM, Michael Havens wrote:

so wait a second could I put fsarchiver on the server and then:

tar --ignore-failed-read [/mnt/sda1] -czf - | ssh 
remoteuser@remote.system mailto:remoteuser@remote.system tar -xzf - 
| fsarchiver command


so the tar command will create a tarball and the the pipe will 
transfer the tarball to the server and extract it wich the second pipe 
will feed into fsarchiver. Is that correct? I have a question: what 
does the minus sign in front of the pipes represent?  Well... I know 
it represents the name of the tar ball but is it the name? Could I 
put anything in that place?


and then Enriques command  (tar jcf - /path/to/backup|ssh 
user@otherbox 'tar xf -') would compress a tarball and then create a 
non compressed archive on the server.


You know... I wondered if I could use scp for this. Investigating the 
man page reveals that this is the program I want to use. The text of 
the command that I should issue I think would be (I want to do this 
from a third computer):


scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name

I don't know if I assigned a user1 or a host1 name. How can I find 
this out? If I didn't how would I assign one or change it to a more 
appropriate name?


This is fun!


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

2012-02-16 Thread Mike Bydalek

I'm not familiar with fsarchiver, but perhaps this will help you out.

http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/

-Mike

On 2/16/12 11:12 AM, Michael Havens wrote:

I'm using fsarchiver to backup a computer. I don't have enough diskspace
for the archive. I can ssh to another computer. I know which directory I
want to save it in but I don't know how to write the file directly to
it. I tried it with a pipe and I tried it with a greater-than sign.
Pray-tell! how is it done?

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

2012-02-16 Thread Michael Havens
I think the problem with using a pipe is that it puts te results of the
first command into the input of the second command. My problem is that I
don't have enough space for the output of the first command.

On Thu, Feb 16, 2012 at 11:15 AM, Mike Bydalek mike.byda...@gmail.comwrote:

 I'm not familiar with fsarchiver, but perhaps this will help you out.

 http://www.cyberciti.biz/faq/**howto-use-tar-command-through-**
 network-over-ssh-session/http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/

 -Mike


 On 2/16/12 11:12 AM, Michael Havens wrote:

 I'm using fsarchiver to backup a computer. I don't have enough diskspace
 for the archive. I can ssh to another computer. I know which directory I
 want to save it in but I don't know how to write the file directly to
 it. I tried it with a pipe and I tried it with a greater-than sign.
 Pray-tell! how is it done?

 --
 :-)~MIKE~(-:


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


 --**-
 PLUG-discuss mailing list - 
 plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://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

Re: ssh

2012-02-16 Thread kitepi...@kitepilot.com

tar jcf - /path/to/backup|ssh user@otherbox 'tar xf -'
will not cause any intermediate file to be created.
ET 




Michael Havens writes: 


I think the problem with using a pipe is that it puts te results of the
first command into the input of the second command. My problem is that I
don't have enough space for the output of the first command. 

On Thu, Feb 16, 2012 at 11:15 AM, Mike Bydalek mike.byda...@gmail.comwrote: 

I'm not familiar with fsarchiver, but perhaps this will help you out. 


http://www.cyberciti.biz/faq/**howto-use-tar-command-through-**
network-over-ssh-session/http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/ 

-Mike 



On 2/16/12 11:12 AM, Michael Havens wrote: 


I'm using fsarchiver to backup a computer. I don't have enough diskspace
for the archive. I can ssh to another computer. I know which directory I
want to save it in but I don't know how to write the file directly to
it. I tried it with a pipe and I tried it with a greater-than sign.
Pray-tell! how is it done? 


--
:-)~MIKE~(-: 



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



--**-
PLUG-discuss mailing list - 
plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://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


Re: ssh

2012-02-16 Thread Walter Mack
You can use a pipe into ssh. The other machine will get your data on 
stdin. So you need to tell the remote shell what to do with the data.


Try this:
tar --ignore-failed-read [your selection of files to back up] -czf - | 
ssh remoteuser@remote.system cat  destination_file.tar.gz


The trick is to give the command for the remote shell (stuff in 
double-quotes at the end of the line above)



On 2/16/2012 11:12 AM, Michael Havens wrote:
I'm using fsarchiver to backup a computer. I don't have enough 
diskspace for the archive. I can ssh to another computer. I know which 
directory I want to save it in but I don't know how to write the file 
directly to it. I tried it with a pipe and I tried it with a 
greater-than sign. Pray-tell! how is it done?


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

2012-02-16 Thread KevinO
On 02/16/2012 11:12 AM, Michael Havens wrote:
 I'm using fsarchiver to backup a computer. I don't have enough diskspace
 for the archive. I can ssh to another computer. I know which directory I
 want to save it in but I don't know how to write the file directly to it. I
 tried it with a pipe and I tried it with a greater-than sign. Pray-tell!
 how is it done?
 
man scp

in a nutshell:

$ scp -r path_to_dir_here [username]@machine:/path_to_destination

it will prompt for an ssh password, if needed.

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

2012-02-16 Thread Dale Farnsworth
That's a problem on DOS or windows, but in Unix/Linux, the output is
piped into the input of the next command one small piece at a time.

-Dale

 I think the problem with using a pipe is that it puts te results of the
 first command into the input of the second command. My problem is that I
 don't have enough space for the output of the first command.
 
 On Thu, Feb 16, 2012 at 11:15 AM, Mike Bydalek mike.byda...@gmail.comwrote:
 
  I'm not familiar with fsarchiver, but perhaps this will help you out.
 
  http://www.cyberciti.biz/faq/**howto-use-tar-command-through-**
 
 network-over-ssh-session/http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/
 
  -Mike
 
 
  On 2/16/12 11:12 AM, Michael Havens wrote:
 
  I'm using fsarchiver to backup a computer. I don't have enough diskspace
  for the archive. I can ssh to another computer. I know which directory I
  want to save it in but I don't know how to write the file directly to
  it. I tried it with a pipe and I tried it with a greater-than sign.
  Pray-tell! how is it done?
 
  --
  :-)~MIKE~(-:
 
 
  --**-
  PLUG-discuss mailing list -
 plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
  To subscribe, unsubscribe, or to change your mail settings:
 
 http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
 
 
  --**-
  PLUG-discuss mailing list -
 plug-disc...@lists.plug.**phoenix.az.usPLUG-discuss@lists.plug.phoenix.az.us
  To subscribe, unsubscribe, or to change your mail settings:
 
 http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discusshttp://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
 
 
 
 
 -- 
 :-)~MIKE~(-:
 
 -=-=-=-=-=-
 [Alternative: text/html]
 -=-=-=-=-=-
 -=-=-=-=-=-
 
 ---
 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

2012-02-16 Thread Michael Havens
so wait a second could I put fsarchiver on the server and then:

tar --ignore-failed-read [/mnt/sda1] -czf - | ssh
remoteuser@remote.systemtar -xzf - | fsarchiver command

so the tar command will create a tarball and the the pipe will transfer the
tarball to the server and extract it wich the second pipe will feed into
fsarchiver. Is that correct? I have a question: what does the minus sign in
front of the pipes represent?  Well... I know it represents the name of the
tar ball but is it the name? Could I put anything in that place?

and then Enriques command  (tar jcf - /path/to/backup|ssh
user@otherbox'tar xf -') would compress a tarball and then create a
non compressed
archive on the server.

You know... I wondered if I could use scp for this. Investigating the man
page reveals that this is the program I want to use. The text of the
command that I should issue I think would be (I want to do this from a
third computer):

scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name

I don't know if I assigned a user1 or a host1 name. How can I find this
out? If I didn't how would I assign one or change it to a more appropriate
name?

This is fun!
---
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

2012-02-16 Thread Michael Havens
one more thing how would I figure out the  user@host name of a windows
computer?
with that I'll be able to backup my brothers computer!

On Thu, Feb 16, 2012 at 11:42 PM, Michael Havens bmi...@gmail.com wrote:

 so wait a second could I put fsarchiver on the server and then:

 tar --ignore-failed-read [/mnt/sda1] -czf - | ssh 
 remoteuser@remote.systemtar -xzf - | fsarchiver command

 so the tar command will create a tarball and the the pipe will transfer
 the tarball to the server and extract it wich the second pipe will feed
 into fsarchiver. Is that correct? I have a question: what does the minus
 sign in front of the pipes represent?  Well... I know it represents the
 name of the tar ball but is it the name? Could I put anything in that
 place?

 and then Enriques command  (tar jcf - /path/to/backup|ssh user@otherbox'tar 
 xf -') would compress a tarball and then create a non compressed
 archive on the server.

 You know... I wondered if I could use scp for this. Investigating the man
 page reveals that this is the program I want to use. The text of the
 command that I should issue I think would be (I want to do this from a
 third computer):

 scp -Cr user1@host1:mnt/sda1 user2@host2:desired/directory/file/name

 I don't know if I assigned a user1 or a host1 name. How can I find this
 out? If I didn't how would I assign one or change it to a more appropriate
 name?

 This is fun!




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

2012-02-16 Thread Michael Havens
cool after investigating further I've modified my command string. Could
you show me how to make it right (I just assume I'm wrong anymore!)?

scp -r -o Compression yes -o CompressionLevel 9 user1@host1:mnt/sda1
user2@host2:desired/directory/file/name
---
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 Tutorial?

2011-11-23 Thread R P Herrold

On Tue, 22 Nov 2011, der.hans wrote:


Does anyone on the list know of a good tutorial on SSH Tunneling?
I am interested in learning how to create a tunnel to a POP3 port?



ssh -L 1110:localhost:110 your.mail.server.com


The fetchmail man page discusses such, and fetchmail will do 
it for you.  I did this for many years when I pulled mail 
locally for reading


-- Russ herrold
---
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 Tutorial?

2011-11-22 Thread Eric Cope
I've found tutorials for tunneling VNC over SSH. The principles are the same. 
If I find one, I'll send it over. 

Eric

On Nov 22, 2011, at 6:49 PM, mike enriquez myli...@cox.net wrote:

 Does anyone on the list know of a good tutorial on SSH Tunneling?
 I am interested in learning how to create a tunnel to a POP3 port?
 
 Thanks
 Mike Enriquez
 ---
 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 Tutorial?

2011-11-22 Thread Eric Shubert

On 11/22/2011 06:49 PM, mike enriquez wrote:

Does anyone on the list know of a good tutorial on SSH Tunneling?
I am interested in learning how to create a tunnel to a POP3 port?

Thanks
Mike Enriquez


Secure POP3 is typically done with TLS, or with the older pop3s (port 
995) SSL method.


Just wondering, why are you trying to do pop3 with ssh?
Sounds a little bizarre (but interesting).

--
-Eric 'shubes'

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

2011-09-02 Thread azlobo73
Good guess.  :2 is line 2, :3 is line 3

The answer to the second might also help clear up the first (if you are
connecting to the same machine  using different names, or if you used to
connect to a host/ip using one, but upgraded/changed the system (including
host keys) then connect using another):

.bashrc is sourced during non-interactive shell actions (scripts, crontabs,
etc), while .bash_profile or .profile is source during interactive shells
(logins, etc).

If you set/use aliases or functions (can work like alias but can take args -
$1 $2 $@ etc - in places middle of commands, not just append blindly at end
of alias cmd line) to short-hand ssh host connections, you might check for
'triggerfish' or '192.168.2.124' and standardize on one.



Ben

On Mon, Aug 29, 2011 at 7:23 AM, kitepi...@kitepilot.com 
kitepi...@kitepilot.com wrote:

 You can also set these options in /etc/ssh/sshd_config or ~/.ssh/config
 ET

 kitepi...@kitepilot.com writes:

 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@box
 YMMV...
 ET

 Dazed_75 writes:

 1) I have a number of machines where I often ssh from one to another.  I
 just did that with a regular pair and got:
 Warning: the RSA host key for 'triggerfish' differs from the key for the
 IP

 address '192.168.2.124'
 Offending key for IP in /home/larry/.ssh/known_hosts:2
 Matching host key in /home/larry/.ssh/known_hosts:3
 Are you sure you want to continue connecting (yes/no)? yes
 Linux triggerfish 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13
 UTC
 2011 x86_64 GNU/Linux
 Ubuntu 10.04.3 LTS
 I GUESS but do not KNOW that the known_hosts[2] and [3] refer to the 2nd

 and 3rd or 3rd and 4th entries out of the 12 that exist.  I do NOT want
 to
 be editing those all the time so does anyone know a way to avoid that?
 2) When I ssh into a machine, it is not clear what if any aliases from
 .bashrc or .bash_profile are in play (from the originationg machine/user
 or
 the target?  It often seems like neither.
 --
 Dazed_75 a.k.a. Larry
 The spirit of resistance to government is so valuable on certain
 occasions,
 that I wish it always to be kept alive.
  - Thomas Jefferson

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

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




-- 
---
Ben

python -c exec(\import math\\nprint ''.join(map(lambda x: chr(x), (
(ord('a')-(3*5)), int(math.sqrt(math.pi*76)*5+2), int(math.ceil(math.e)*28),
int(math.floor(math.e)*35), long(abs(4%3*35+3)*2\)**
---
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 questions

2011-08-29 Thread kitepi...@kitepilot.com

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@box
YMMV...
ET 



Dazed_75 writes: 


1) I have a number of machines where I often ssh from one to another.  I
just did that with a regular pair and got: 


Warning: the RSA host key for 'triggerfish' differs from the key for the IP

address '192.168.2.124'
Offending key for IP in /home/larry/.ssh/known_hosts:2
Matching host key in /home/larry/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? yes
Linux triggerfish 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC
2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS 


 I GUESS but do not KNOW that the known_hosts[2] and [3] refer to the 2nd

and 3rd or 3rd and 4th entries out of the 12 that exist.  I do NOT want to
be editing those all the time so does anyone know a way to avoid that? 


2) When I ssh into a machine, it is not clear what if any aliases from
.bashrc or .bash_profile are in play (from the originationg machine/user or
the target?  It often seems like neither.
--
Dazed_75 a.k.a. Larry 


The spirit of resistance to government is so valuable on certain occasions,
that I wish it always to be kept alive.
  - Thomas Jefferson

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

2011-08-29 Thread kitepi...@kitepilot.com

You can also set these options in /etc/ssh/sshd_config or ~/.ssh/config
ET 



kitepi...@kitepilot.com writes: 


ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@box
YMMV...
ET  



Dazed_75 writes:  


1) I have a number of machines where I often ssh from one to another.  I
just did that with a regular pair and got:  

Warning: the RSA host key for 'triggerfish' differs from the key for the 
IP

address '192.168.2.124'
Offending key for IP in /home/larry/.ssh/known_hosts:2
Matching host key in /home/larry/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? yes
Linux triggerfish 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 
UTC

2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS  


I GUESS but do not KNOW that the known_hosts[2] and [3] refer to the 2nd
and 3rd or 3rd and 4th entries out of the 12 that exist.  I do NOT want 
to
be editing those all the time so does anyone know a way to avoid that?  


2) When I ssh into a machine, it is not clear what if any aliases from
.bashrc or .bash_profile are in play (from the originationg machine/user 
or

the target?  It often seems like neither.
--
Dazed_75 a.k.a. Larry  

The spirit of resistance to government is so valuable on certain 
occasions,

that I wish it always to be kept alive.
  - Thomas Jefferson

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

2011-06-19 Thread Dazed_75
Hi back Lisa :)

sshd seems to be running from
larry@lapdog2:~$ ps aux | grep ssh
larry 1692  0.0  0.0   3368   192 ?Ss   00:20   0:00
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session
--session=ubuntu
larry 2065  0.0  0.1   5296  2292 pts/0S+   00:22   0:00 ssh
triggerfish
root  2350  0.0  0.1   5652  2260 ?Ss   00:28   0:00
/usr/sbin/sshd -D
larry 2519  0.0  0.0   4156   860 pts/1S+   00:32   0:00 grep ssh


On Sat, Jun 18, 2011 at 8:28 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 Hi Larry,

 Can you get to lapdog2 to stop and restart the /etc/init,d/sshd daemon?

 /etc/init.d/sshd restart

But
larry@lapdog2:~$ sudo /etc/init.d/sshd restart
sudo: /etc/init.d/sshd: command not found
so I looked into /etc/init.d/ssh and it looked like it also dealt with sshd
so I tried:
larry@lapdog2:~$ sudo /etc/init.d/ssh restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop ssh ; start ssh. The restart(8) utility is also available.
ssh stop/waiting
ssh start/running, process 2536
larry@lapdog2:~$ sudo service sshd restart
sshd: unrecognized service
larry@lapdog2:~$ sudo service ssh restart
ssh start/running, process 2673
larry@lapdog2:~$




 sometimes it's ssh not sshd

 If you have verified it is on on that server and listening:

 # /etc/init.d/ssh status
 # netstat -ant |grep 22

larry@lapdog2:~$ /etc/init.d/ssh status
 * sshd is running
larry@lapdog2:~$ netstat -ant |grep 22
tcp0  0 0.0.0.0:22  0.0.0.0:*
LISTEN
tcp0  0 192.168.2.124:56162 74.125.225.88:443
ESTABLISHED
tcp0  0 192.168.2.124:35927 74.125.225.86:443
ESTABLISHED
tcp0  0 192.168.2.124:34110 192.168.2.123:22
ESTABLISHED
tcp6   0  0 :::22   :::*
LISTEN
larry@lapdog2:~$




 You can then go to your remote system and run nmap with stealth settings to
 verify that port 22 is not filtered by iptables or something else (listening
 on eth0 instead of wlan1 or eth1).

 # nmap -P0 lapdog2

larry@triggerfish:~$ nmap -P0 lapdog2

Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-19 00:50 MST
All 1000 scanned ports on lapdog2 (192.168.2.124) are filtered

Nmap done: 1 IP address (1 host up) scanned in 201.30 seconds
larry@triggerfish:~$ ## NOTE:  ufw now disabled on lapdog2
larry@triggerfish:~$ nmap -P0 lapdog2

Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-19 00:56 MST
Interesting ports on lapdog2 (192.168.2.124):
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
larry@triggerfish:~$ ssh -v lapdog2

Hmmm, now it works   Thanks.  Still puzzled because it did not work here at
home last night and ufw was definitely disabled then.  I verified it here
and at UAT today and then enabled it there.  I guess I need to figure out
next how to allow ssh to work even with ufw enabled.  And yes, I know it
would be safer to use a non-standard port especially if this were accessible
from the WAN.

Thanks again to everyone for guiding me through using these unfamiliar tools
so I could discover the problem!



 On Sat, Jun 18, 2011 at 4:08 PM, Dazed_75 lthiels...@gmail.com wrote:

 Supplemental information.  I have now done this in two locations (home and
 at UAT) using 3 machines in each location (lapdog2 in both) and different
 routers in each.  I can ssh from lapdog2 to any other with one exception
 (see next paragraph).  I can also ssh from other machine to any other except
 lapdog2 and the same exception.

 The exception is damselfish which is a netbook running ubuntu 11.04 like
 lapdog2 (a laptop).  Ubuntu 11.04 does not seem to be the common thread as
 hammerhead works both ways and it is a desktop running 11.04.  Its hard to
 imaging laptops being the common thread but ...

 On Sat, Jun 18, 2011 at 1:02 PM, Joseph Sinclair 
 plug-discuss...@stcaz.net wrote:

 Based on what you're seeing below, I'd suggest looking at the IP setup on
 the machines and any router/gateway between the two machines.
 It looks like something is allowing the ICMP traffic but blocking or
 loosing the TCP connect for port 22.

 It might help to run the following commands on each machine to look for
 inconsistencies or errors:
 ifconfig -a
 ip addr list
 ip neigh
 ip route


 larry@lapdog2:~$ ifconfig -a
 eth0  Link encap:Ethernet  HWaddr 00:16:36:e6:1b:b9
   inet addr:192.168.2.124  Bcast:192.168.2.255  Mask:255.255.255.0
   inet6 addr: fe80::216:36ff:fee6:1bb9/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:4187 errors:0 dropped:0 overruns:0 frame:0
   TX packets:4369 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:1349793 

Re: ssh question

2011-06-19 Thread Lisa Kachold
Yes,

It's a layer of things to check for ssh.

Glad you fixed it!

On Sun, Jun 19, 2011 at 1:07 AM, Dazed_75 lthiels...@gmail.com wrote:

 Hi back Lisa :)

 sshd seems to be running from
 larry@lapdog2:~$ ps aux | grep ssh
 larry 1692  0.0  0.0   3368   192 ?Ss   00:20   0:00
 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session
 --session=ubuntu
 larry 2065  0.0  0.1   5296  2292 pts/0S+   00:22   0:00 ssh
 triggerfish
 root  2350  0.0  0.1   5652  2260 ?Ss   00:28   0:00
 /usr/sbin/sshd -D
 larry 2519  0.0  0.0   4156   860 pts/1S+   00:32   0:00 grep ssh


 On Sat, Jun 18, 2011 at 8:28 PM, Lisa Kachold lisakach...@obnosis.comwrote:

 Hi Larry,

 Can you get to lapdog2 to stop and restart the /etc/init,d/sshd daemon?

 /etc/init.d/sshd restart

 But
 larry@lapdog2:~$ sudo /etc/init.d/sshd restart
 sudo: /etc/init.d/sshd: command not found
 so I looked into /etc/init.d/ssh and it looked like it also dealt with sshd
 so I tried:
 larry@lapdog2:~$ sudo /etc/init.d/ssh restart
 Rather than invoking init scripts through /etc/init.d, use the service(8)
 utility, e.g. service ssh restart

 Since the script you are attempting to invoke has been converted to an
 Upstart job, you may also use the stop(8) and then start(8) utilities,
 e.g. stop ssh ; start ssh. The restart(8) utility is also available.
 ssh stop/waiting
 ssh start/running, process 2536
 larry@lapdog2:~$ sudo service sshd restart
 sshd: unrecognized service
 larry@lapdog2:~$ sudo service ssh restart
 ssh start/running, process 2673
 larry@lapdog2:~$




 sometimes it's ssh not sshd

 If you have verified it is on on that server and listening:

 # /etc/init.d/ssh status
 # netstat -ant |grep 22

 larry@lapdog2:~$ /etc/init.d/ssh status
  * sshd is running
 larry@lapdog2:~$ netstat -ant |grep 22

 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN
 tcp0  0 192.168.2.124:56162 74.125.225.88:443
 ESTABLISHED
 tcp0  0 192.168.2.124:35927 74.125.225.86:443
 ESTABLISHED
 tcp0  0 192.168.2.124:34110 192.168.2.123:22
 ESTABLISHED

 tcp6   0  0 :::22   :::*
 LISTEN
 larry@lapdog2:~$




 You can then go to your remote system and run nmap with stealth settings
 to verify that port 22 is not filtered by iptables or something else
 (listening on eth0 instead of wlan1 or eth1).

 # nmap -P0 lapdog2

 larry@triggerfish:~$ nmap -P0 lapdog2

 Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-19 00:50 MST
 All 1000 scanned ports on lapdog2 (192.168.2.124) are filtered

 Nmap done: 1 IP address (1 host up) scanned in 201.30 seconds
 larry@triggerfish:~$ ## NOTE:  ufw now disabled on lapdog2
 larry@triggerfish:~$ nmap -P0 lapdog2

 Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-19 00:56 MST
 Interesting ports on lapdog2 (192.168.2.124):
 Not shown: 999 closed ports
 PORT   STATE SERVICE
 22/tcp open  ssh

 Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
 larry@triggerfish:~$ ssh -v lapdog2

 Hmmm, now it works   Thanks.  Still puzzled because it did not work here at
 home last night and ufw was definitely disabled then.  I verified it here
 and at UAT today and then enabled it there.  I guess I need to figure out
 next how to allow ssh to work even with ufw enabled.  And yes, I know it
 would be safer to use a non-standard port especially if this were accessible
 from the WAN.

 Thanks again to everyone for guiding me through using these unfamiliar
 tools so I could discover the problem!



 On Sat, Jun 18, 2011 at 4:08 PM, Dazed_75 lthiels...@gmail.com wrote:

 Supplemental information.  I have now done this in two locations (home
 and at UAT) using 3 machines in each location (lapdog2 in both) and
 different routers in each.  I can ssh from lapdog2 to any other with one
 exception (see next paragraph).  I can also ssh from other machine to any
 other except lapdog2 and the same exception.

 The exception is damselfish which is a netbook running ubuntu 11.04 like
 lapdog2 (a laptop).  Ubuntu 11.04 does not seem to be the common thread as
 hammerhead works both ways and it is a desktop running 11.04.  Its hard to
 imaging laptops being the common thread but ...

 On Sat, Jun 18, 2011 at 1:02 PM, Joseph Sinclair 
 plug-discuss...@stcaz.net wrote:

 Based on what you're seeing below, I'd suggest looking at the IP setup
 on the machines and any router/gateway between the two machines.
 It looks like something is allowing the ICMP traffic but blocking or
 loosing the TCP connect for port 22.

 It might help to run the following commands on each machine to look for
 inconsistencies or errors:
 ifconfig -a
 ip addr list
 ip neigh
 ip route


 larry@lapdog2:~$ ifconfig -a
 eth0  Link encap:Ethernet  HWaddr 00:16:36:e6:1b:b9
   inet addr:192.168.2.124  Bcast:192.168.2.255
 Mask:255.255.255.0
   inet6 addr: fe80::216:36ff:fee6:1bb9/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  

Re: ssh question

2011-06-18 Thread Dazed_75
Mike,
The netstat lines I think you wanted to see are:
tcp0  0 0.0.0.0:22  0.0.0.0:*
LISTEN
tcp6   0  0 :::22   :::*
LISTEN

Yes, ssh localhost works on all machines including lapdog2.  Not sure that
proves anything as the only problem is ssh TO lapdog2 from any other
machine.

stop is not a valid argument to iptables and selinux is not in play.

Steve,
Nothing in the host files.

Lisa,
Name resolution is done by dnsmasq in the router for hosts on the LAN.
Although nsswitch.conf shows files before dns, there is nothing in any of
the host files or on resolv.conf.  No dynamic dns is is use for anything on
the network.

Had you read the posts and replies, you would have seen there was no IP
error.  It was an error between the keyboard and my chair.


On Fri, Jun 17, 2011 at 10:04 AM, Stephen cryptwo...@gmail.com wrote:

 Gonna toss out an obvious was there a hosts entry?
 On Jun 17, 2011 8:49 AM, Dazed_75 lthiels...@gmail.com wrote:
  These machines are all gigabit ethernet and connected to the same gigabit
  switch with little network traffic at the time of these attempts.
 
  On Fri, Jun 17, 2011 at 6:23 AM, Joseph Sinclair
  plug-discuss...@stcaz.netwrote:
 
  A connection timed out usually occurs due to:
  1) The ip address has no host (ping the same IP address, then use telnet
 to
  connect to port 22)
 
 
  I realized after sending the message I should have included the
 successful
  ping of lapdog2 which was done by name. Telnet also fails.
 
  2) tcp wrappers is dropping the connection (check /et/hosts.allow and
  /etc/hosts.deny on lapdog3)
 
 
  Nothing but comments in either file.
 
 
  3) the firewall on lapdog3 is dropping the connection (check the
 firewall
  configuration on lapdog3 via iptables-save or ufw status)
 
 
  ufw status was inactive at that time. As far as I can tell this morning,
  iptables says nothing about port 22 or ssh though last night I could have
  sworn it did and said to accept. In any case, I get the same result this
  morning though I am on a different machine trying to ssh to lapdog2.
 
 
  4) SSHD is not on port 22 or dropping connections (check sshd
 configuration
  on lapdog3)
 
 
  It is using port 22. I do not know how to check for dropping connections.
  I did check syslog and dmesg/messages. NOTE: lapdog2 is able to ssh to
 this
  machine but then ssh'ing back to lapdog 2 gives the same results as doing
 it
  directly on this machine.
 
 
 
  On 06/17/2011 02:14 AM, Dazed_75 wrote:
   Ignore the original question. I checked lapdog2's IP in a terminal
 that
  was
   logged into a different machine. The ssh was using the right IP but
  getting
   this result and I cannot figure out why:
  
   larry@hammerhead:~$ ssh -v lapdog2
   OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
   debug1: Reading configuration data /etc/ssh/ssh_config
   debug1: Applying options for *
   debug1: Connecting to lapdog2 [192.168.2.124] port 22.
   debug1: connect to address 192.168.2.124 port 22: Connection timed
 out
   ssh: connect to host lapdog2 port 22: Connection timed out
   larry@hammerhead:~$
  
  
  
   On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com
 wrote:
  
   I tried to ssh from this machine to my laptop (ssh lapdog3) and find
  that
   ssh is somehow using an old IP instead of doing name resolution on th
 e
  name
   lapdog2 which now has a new lease on a different IP.
  
   1) How do I fix this?
   2) Why does ssh use an old, apparently, stored IP?
  
   --
   Dazed_75 a.k.a. Larry
  
   The spirit of resistance to government is so valuable on certain
  occasions,
   that I wish it always to be kept alive.
   - Thomas Jefferson
  
  
  
  
  
  
   ---
   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
 
  The spirit of resistance to government is so valuable on certain
 occasions,
  that I wish it always to be kept alive.
  - Thomas Jefferson

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

The spirit of resistance to government is so valuable on certain occasions,
that I wish it always to be kept alive.
  - Thomas Jefferson
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail 

Re: ssh question

2011-06-18 Thread Lisa Kachold
On Sat, Jun 18, 2011 at 12:30 AM, Dazed_75 lthiels...@gmail.com wrote:

 Mike,
 The netstat lines I think you wanted to see are:
 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN
 tcp6   0  0 :::22   :::*
 LISTEN

 Yes, ssh localhost works on all machines including lapdog2.  Not sure that
 proves anything as the only problem is ssh TO lapdog2 from any other
 machine.

 stop is not a valid argument to iptables and selinux is not in play.

 Steve,
 Nothing in the host files.

 Lisa,
 Name resolution is done by dnsmasq in the router for hosts on the LAN.
 Although nsswitch.conf shows files before dns, there is nothing in any of
 the host files or on resolv.conf.  No dynamic dns is is use for anything on
 the network.

 Had you read the posts and replies, you would have seen there was no IP
 error.  It was an error between the keyboard and my chair.


Whoa little buddy!  What a terse response.  Generally when someone assists
you, it's very poor form to accuse them of not reading your message?

I read a confused message indicating that your lapdog2 machine had changed
dynamic IP and now you could no longer ssh to it.  I did not see what
message you received (timeout?) that indicates the issue.  Specifics are
very important in linux/unix/os x troubleshooting!  What message was that?


0) When you do a:

# ping lapdog2

Are you using the new address?

If not you are using a cache.

1) When you do a:

# nmap lapdog2

Can you see that port 22 is open?
Can you ssh via IP address?

2) Did you verify if you have strict host checking on [/etc/ssh/sshd_config]
or a key in your $HOME/.ssh/known_hosts file?

You can delete that key in the known_hosts file.  Edit it and search forward
for machine name lapdog2 then delete the whole line.  Be sure to copy the
file to backup before you do so, just in case.

3) Take Stephen's advise and enter a hosts entry just to see what happens
[and to rule out/verify the sshd_config strict host checking (which is
certainly also was a factor)]?  Since you /etc/nsswitch.conf says file then
dns, you will use the host file FIRST.

4) You can also setup manual DNS for all your machines, using an /etc/hosts
file to provide name to ip resolution inside so this won't happen every time
you get a new dynamic dns address.

This is basic networking, basic ssh and basic host resolution.  I suggest
you either give a presentation (so you can learn yourself) on these
subjects.




 On Fri, Jun 17, 2011 at 10:04 AM, Stephen cryptwo...@gmail.com wrote:

 Gonna toss out an obvious was there a hosts entry?
 On Jun 17, 2011 8:49 AM, Dazed_75 lthiels...@gmail.com wrote:
  These machines are all gigabit ethernet and connected to the same
 gigabit
  switch with little network traffic at the time of these attempts.
 
  On Fri, Jun 17, 2011 at 6:23 AM, Joseph Sinclair
  plug-discuss...@stcaz.netwrote:
 
  A connection timed out usually occurs due to:
  1) The ip address has no host (ping the same IP address, then use
 telnet to
  connect to port 22)
 
 
  I realized after sending the message I should have included the
 successful
  ping of lapdog2 which was done by name. Telnet also fails.
 
  2) tcp wrappers is dropping the connection (check /et/hosts.allow and
  /etc/hosts.deny on lapdog3)
 
 
  Nothing but comments in either file.
 
 
  3) the firewall on lapdog3 is dropping the connection (check the
 firewall
  configuration on lapdog3 via iptables-save or ufw status)
 
 
  ufw status was inactive at that time. As far as I can tell this morning,
  iptables says nothing about port 22 or ssh though last night I could
 have
  sworn it did and said to accept. In any case, I get the same result this
  morning though I am on a different machine trying to ssh to lapdog2.
 
 
  4) SSHD is not on port 22 or dropping connections (check sshd
 configuration
  on lapdog3)
 
 
  It is using port 22. I do not know how to check for dropping
 connections.
  I did check syslog and dmesg/messages. NOTE: lapdog2 is able to ssh to
 this
  machine but then ssh'ing back to lapdog 2 gives the same results as
 doing it
  directly on this machine.
 
 
 
  On 06/17/2011 02:14 AM, Dazed_75 wrote:
   Ignore the original question. I checked lapdog2's IP in a terminal
 that
  was
   logged into a different machine. The ssh was using the right IP but
  getting
   this result and I cannot figure out why:
  
   larry@hammerhead:~$ ssh -v lapdog2
   OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
   debug1: Reading configuration data /etc/ssh/ssh_config
   debug1: Applying options for *
   debug1: Connecting to lapdog2 [192.168.2.124] port 22.
   debug1: connect to address 192.168.2.124 port 22: Connection timed
 out
   ssh: connect to host lapdog2 port 22: Connection timed out
   larry@hammerhead:~$
  
  
  
   On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com
 wrote:
  
   I tried to ssh from this machine to my laptop (ssh lapdog3) and find
  that
   ssh is somehow using an old IP 

Re: ssh question

2011-06-18 Thread Dazed_75
On Sat, Jun 18, 2011 at 8:00 AM, Lisa Kachold lisakach...@obnosis.comwrote:



 On Sat, Jun 18, 2011 at 12:30 AM, Dazed_75 lthiels...@gmail.com wrote:

 Mike,
 The netstat lines I think you wanted to see are:
 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN
 tcp6   0  0 :::22   :::*
 LISTEN

 Yes, ssh localhost works on all machines including lapdog2.  Not sure that
 proves anything as the only problem is ssh TO lapdog2 from any other
 machine.

 stop is not a valid argument to iptables and selinux is not in play.

 Steve,
 Nothing in the host files.

 Lisa,
 Name resolution is done by dnsmasq in the router for hosts on the LAN.
 Although nsswitch.conf shows files before dns, there is nothing in any of
 the host files or on resolv.conf.  No dynamic dns is is use for anything on
 the network.

 Had you read the posts and replies, you would have seen there was no IP
 error.  It was an error between the keyboard and my chair.


 Whoa little buddy!  What a terse response.  Generally when someone assists
 you, it's very poor form to accuse them of not reading your message?

 I read a confused message indicating that your lapdog2 machine had changed
 dynamic IP and now you could no longer ssh to it.  I did not see what
 message you received (timeout?) that indicates the issue.  Specifics are
 very important in linux/unix/os x troubleshooting!  What message was that?



The second message in this thread stated that there was no wrong IP being
used.  I stated the my observation of the wrong IP was because I forgot that
terminal was logged into a remote machine.



 0) When you do a:

 # ping lapdog2

 Are you using the new address?

 If not you are using a cache.


The fifth message in the thread states that a ping of lapdog2 by name works
properly.


 1) When you do a:

 # nmap lapdog2


larry@fogtest:~$ sudo nmap lapdog2
Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-18 10:21 MST
All 1000 scanned ports on lapdog2 (192.168.2.124) are filtered
MAC Address xx:xx:xx:xx:xx;xx (Quanta Computer) -- I removed the real
mac addr
Nmap done: 1 IP address (1 host up) scanned in 21.56 seconds

Since I am not sure what filtered means, this could be the issue I suppose.
BTW, I am at Eric;s server install workshop so I enable UFW which was not
enabled at home.


 Can you see that port 22 is open?


Don't really know how to tell.  Sorry.  Note in my previous message that
port 22 was being LISTENed to.


 Can you ssh via IP address?


No,  I did try.  As previously noted, none of the systems was ever using the
wrong IP.


 2) Did you verify if you have strict host checking on
 [/etc/ssh/sshd_config] or a key in your $HOME/.ssh/known_hosts file?


Strictmodes yes in /etc/ssh/sshd_config
$HOME/.ssh/known_hosts seems to have 5 listed hosts but I have no way to
know what host each is for.  No host names are in clear text.


 You can delete that key in the known_hosts file.  Edit it and search
 forward for machine name lapdog2 then delete the whole line.  Be sure to
 copy the file to backup before you do so, just in case.


Cannot do this sine no host names are in clear text.


 3) Take Stephen's advise and enter a hosts entry just to see what happens
 [and to rule out/verify the sshd_config strict host checking (which is
 certainly also was a factor)]?  Since you /etc/nsswitch.conf says file then
 dns, you will use the host file FIRST.


Which means that with no entry in the hosts file, will always use dns which
is always resolving correctly.  Since I don't know what strict host checking
means, I may be missing your point.


 4) You can also setup manual DNS for all your machines, using an /etc/hosts
 file to provide name to ip resolution inside so this won't happen every time
 you get a new dynamic dns address.


Again, name/ip resolution is not a problem and is always working correctly.
BTW, here is an attempt from today:
larry@fogtest:~$ ssh -v lapdog2
OpenSSH_5.3p1 Debian-3ubuntu6, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to lapdog2 [192.168.2.124] port 22.
debug1: connect to address 192.168.2.124 port 22: Connection timed out
ssh: connect to host lapdog2 port 22: Connection timed out
larry@fogtest:~$ ping -c 3 lapdog2
PING lapdog2 (192.168.2.124) 56(84) bytes of data.
64 bytes from lapdog2 (192.168.2.124): icmp_seq=1 ttl=64 time=0.587 ms
64 bytes from lapdog2 (192.168.2.124): icmp_seq=2 ttl=64 time=0.856 ms
64 bytes from lapdog2 (192.168.2.124): icmp_seq=3 ttl=64 time=0.996 ms

--- lapdog2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.587/0.813/0.996/0.169 ms
larry@fogtest:~$

Clearly the issue seems to be what is blocking communication to port 22 even
though sshd is listening on it, iptables seems to allow it and ufw was
disabled yesterday and being enabled today seems to change nothing.


 This is basic networking, basic ssh and 

Re: ssh question

2011-06-18 Thread Joseph Sinclair
Based on what you're seeing below, I'd suggest looking at the IP setup on the 
machines and any router/gateway between the two machines.
It looks like something is allowing the ICMP traffic but blocking or loosing 
the TCP connect for port 22.

It might help to run the following commands on each machine to look for 
inconsistencies or errors:
ifconfig -a
ip addr list
ip neigh
ip route

Some *possible* causes:
1) More than one machine thinks it has IP 192.168.2.124 and there is an ARP 
conflict.
2) You have VLAN's setup on the router and the tagging is off or the router 
isn't passing TCP traffic between the VLAN's.
3) The two machines have subnet masks that make them think they're on different 
networks (e.g. 255.255.255.0 and 255.255.255.252 or /24 and /30)

If the machines are DHCP, have both release and renew their lease (and make 
sure there's only one DHCP server on the network!).
If they're static configured, check /etc/network/interfaces and make sure the 
subnet mask is the same on both.
Dig through your router configuration (I assume you only have one router, if 
not temporarily remove all but one router) to make sure you don't have VLAN's 
setup or that they're properly configured
Check the ARP tables on the machines and the router (ip neigh at the command 
line on each machine, router depends on it's interface) to make sure you don't 
have duplicates and the MAC address matches for each IP address on the 
different machines
example (you may see many more entries than this) (Note that 10.23.124.104 is 
visible on both and the MAC value matches):
Machine 1
10.23.124.104 dev eth0 lladdr 02:49:5a:9e:e2:6c STALE
10.23.124.123 dev eth0 lladdr 03:1d:7f:7f:4d:2d STALE

Machine 2
10.23.124.104 dev eth0 lladdr 02:49:5a:9e:e2:6c STALE
10.23.124.125 dev eth0 lladdr 03:1e:4f:73:29:10 STALE

There should be only one entry for each IP address in the list on each machine; 
for a given IP address, all machines should see the same MAC address.

Hopefully that helps.  Inconsistent network issues like this are always 
difficult to track down.

SNIPSNIPSNIP
 Again, name/ip resolution is not a problem and is always working correctly.
 BTW, here is an attempt from today:
 larry@fogtest:~$ ssh -v lapdog2
 OpenSSH_5.3p1 Debian-3ubuntu6, OpenSSL 0.9.8k 25 Mar 2009
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to lapdog2 [192.168.2.124] port 22.
 debug1: connect to address 192.168.2.124 port 22: Connection timed out
 ssh: connect to host lapdog2 port 22: Connection timed out
 larry@fogtest:~$ ping -c 3 lapdog2
 PING lapdog2 (192.168.2.124) 56(84) bytes of data.
 64 bytes from lapdog2 (192.168.2.124): icmp_seq=1 ttl=64 time=0.587 ms
 64 bytes from lapdog2 (192.168.2.124): icmp_seq=2 ttl=64 time=0.856 ms
 64 bytes from lapdog2 (192.168.2.124): icmp_seq=3 ttl=64 time=0.996 ms
 
 --- lapdog2 ping statistics ---
 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
 rtt min/avg/max/mdev = 0.587/0.813/0.996/0.169 ms
 larry@fogtest:~$
 
 Clearly the issue seems to be what is blocking communication to port 22 even
 though sshd is listening on it, iptables seems to allow it and ufw was
 disabled yesterday and being enabled today seems to change nothing.
 
SNIPSNIPSNIP



signature.asc
Description: OpenPGP digital signature
---
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 question

2011-06-18 Thread Dazed_75
Supplemental information.  I have now done this in two locations (home and
at UAT) using 3 machines in each location (lapdog2 in both) and different
routers in each.  I can ssh from lapdog2 to any other with one exception
(see next paragraph).  I can also ssh from other machine to any other except
lapdog2 and the same exception.

The exception is damselfish which is a netbook running ubuntu 11.04 like
lapdog2 (a laptop).  Ubuntu 11.04 does not seem to be the common thread as
hammerhead works both ways and it is a desktop running 11.04.  Its hard to
imaging laptops being the common thread but ...

On Sat, Jun 18, 2011 at 1:02 PM, Joseph Sinclair
plug-discuss...@stcaz.netwrote:

 Based on what you're seeing below, I'd suggest looking at the IP setup on
 the machines and any router/gateway between the two machines.
 It looks like something is allowing the ICMP traffic but blocking or
 loosing the TCP connect for port 22.

 It might help to run the following commands on each machine to look for
 inconsistencies or errors:
 ifconfig -a
 ip addr list
 ip neigh
 ip route


larry@lapdog2:~$ ifconfig -a
eth0  Link encap:Ethernet  HWaddr 00:16:36:e6:1b:b9
  inet addr:192.168.2.124  Bcast:192.168.2.255  Mask:255.255.255.0
  inet6 addr: fe80::216:36ff:fee6:1bb9/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:4187 errors:0 dropped:0 overruns:0 frame:0
  TX packets:4369 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:1349793 (1.3 MB)  TX bytes:621589 (621.5 KB)
  Interrupt:18 Memory:da00-da02

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

wlan0 Link encap:Ethernet  HWaddr 00:19:d2:37:3c:33
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

larry@lapdog2:~$ ip addr list
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state
UP qlen 1000
link/ether 00:16:36:e6:1b:b9 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.124/24 brd 192.168.2.255 scope global eth0
inet6 fe80::216:36ff:fee6:1bb9/64 scope link
   valid_lft forever preferred_lft forever
3: wlan0: BROADCAST,MULTICAST mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:19:d2:37:3c:33 brd ff:ff:ff:ff:ff:ff
larry@lapdog2:~$ ip neigh
192.168.2.1 dev eth0 lladdr 00:18:f8:3e:19:c1 REACHABLE
larry@lapdog2:~$ ip route
192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.124  metric
1
169.254.0.0/16 dev eth0  scope link  metric 1000
default via 192.168.2.1 dev eth0  proto static
larry@lapdog2:~$


 Some *possible* causes:
 1) More than one machine thinks it has IP 192.168.2.124 and there is an ARP
 conflict.



 Verified not true



 2) You have VLAN's setup on the router and the tagging is off or the router
 isn't passing TCP traffic between the VLAN's.


No VLANs


 3) The two machines have subnet masks that make them think they're on
 different networks (e.g. 255.255.255.0 and 255.255.255.252 or /24 and /30)


All subnet masks are 255.255.255.0


 If the machines are DHCP, have both release and renew their lease (and make
 sure there's only one DHCP server on the network!).


Verified only one dhcp server


 If they're static configured, check /etc/network/interfaces and make sure
 the subnet mask is the same on both.


Only one machine (fogtest) is staticly configured )on both routers) as a
static IP issued by DHCP


 Dig through your router configuration (I assume you only have one router,
 if not temporarily remove all but one router) to make sure you don't have
 VLAN's setup or that they're properly configured


Only one router in each loaction and they seem correct


 Check the ARP tables on the machines and the router (ip neigh at the
 command line on each machine, router depends on it's interface) to make sure
 you don't have duplicates and the MAC address matches for each IP address on
 the different machines


I'll have to research how to do that.


 example (you may see many more entries than this) (Note that 10.23.124.104
 is visible on both and the MAC value matches):
 Machine 1
 10.23.124.104 dev eth0 lladdr 02:49:5a:9e:e2:6c STALE
 10.23.124.123 dev eth0 lladdr 03:1d:7f:7f:4d:2d STALE

 Machine 

re ssh issue

2011-06-18 Thread James Crawford

Larry

I think it looks like either a firewall issue, or sshd is ignoring you.

Check logs on lapdog2 (messages, and secure) see if that provides any hints.

James C.



Again, name/ip resolution is not a problem and is always working correctly.
BTW, here is an attempt from today:
larry@fogtest:~$ ssh -v lapdog2
OpenSSH_5.3p1 Debian-3ubuntu6, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to lapdog2 [192.168.2.124] port 22.
debug1: connect to address 192.168.2.124 port 22: Connection timed out
ssh: connect to host lapdog2 port 22: Connection timed out implies firewall as first check to 
me
larry@fogtest:~$ ping -c 3 lapdog2
PING lapdog2 (192.168.2.124) 56(84) bytes of data.
64 bytes from lapdog2 (192.168.2.124): icmp_seq=1 ttl=64 time=0.587 ms
64 bytes from lapdog2 (192.168.2.124): icmp_seq=2 ttl=64 time=0.856 ms
64 bytes from lapdog2 (192.168.2.124): icmp_seq=3 ttl=64 time=0.996 ms

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

2011-06-18 Thread Lisa Kachold
Hi Larry,

Can you get to lapdog2 to stop and restart the /etc/init,d/sshd daemon?

/etc/init.d/sshd restart

sometimes it's ssh not sshd

If you have verified it is on on that server and listening:

# /etc/init.d/ssh status
# netstat -ant |grep 22

You can then go to your remote system and run nmap with stealth settings to
verify that port 22 is not filtered by iptables or something else (listening
on eth0 instead of wlan1 or eth1).

# nmap -P0 lapdog2

On Sat, Jun 18, 2011 at 4:08 PM, Dazed_75 lthiels...@gmail.com wrote:

 Supplemental information.  I have now done this in two locations (home and
 at UAT) using 3 machines in each location (lapdog2 in both) and different
 routers in each.  I can ssh from lapdog2 to any other with one exception
 (see next paragraph).  I can also ssh from other machine to any other except
 lapdog2 and the same exception.

 The exception is damselfish which is a netbook running ubuntu 11.04 like
 lapdog2 (a laptop).  Ubuntu 11.04 does not seem to be the common thread as
 hammerhead works both ways and it is a desktop running 11.04.  Its hard to
 imaging laptops being the common thread but ...

 On Sat, Jun 18, 2011 at 1:02 PM, Joseph Sinclair 
 plug-discuss...@stcaz.net wrote:

 Based on what you're seeing below, I'd suggest looking at the IP setup on
 the machines and any router/gateway between the two machines.
 It looks like something is allowing the ICMP traffic but blocking or
 loosing the TCP connect for port 22.

 It might help to run the following commands on each machine to look for
 inconsistencies or errors:
 ifconfig -a
 ip addr list
 ip neigh
 ip route


 larry@lapdog2:~$ ifconfig -a
 eth0  Link encap:Ethernet  HWaddr 00:16:36:e6:1b:b9
   inet addr:192.168.2.124  Bcast:192.168.2.255  Mask:255.255.255.0
   inet6 addr: fe80::216:36ff:fee6:1bb9/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:4187 errors:0 dropped:0 overruns:0 frame:0
   TX packets:4369 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:1349793 (1.3 MB)  TX bytes:621589 (621.5 KB)
   Interrupt:18 Memory:da00-da02

 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:12 errors:0 dropped:0 overruns:0 frame:0
   TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

 wlan0 Link encap:Ethernet  HWaddr 00:19:d2:37:3c:33
   BROADCAST MULTICAST  MTU:1500  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 larry@lapdog2:~$ ip addr list
 1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 inet 127.0.0.1/8 scope host lo
 inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state
 UP qlen 1000
 link/ether 00:16:36:e6:1b:b9 brd ff:ff:ff:ff:ff:ff
 inet 192.168.2.124/24 brd 192.168.2.255 scope global eth0
 inet6 fe80::216:36ff:fee6:1bb9/64 scope link
valid_lft forever preferred_lft forever
 3: wlan0: BROADCAST,MULTICAST mtu 1500 qdisc noop state DOWN qlen 1000
 link/ether 00:19:d2:37:3c:33 brd ff:ff:ff:ff:ff:ff
 larry@lapdog2:~$ ip neigh
 192.168.2.1 dev eth0 lladdr 00:18:f8:3e:19:c1 REACHABLE
 larry@lapdog2:~$ ip route
 192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.124
 metric 1
 169.254.0.0/16 dev eth0  scope link  metric 1000
 default via 192.168.2.1 dev eth0  proto static
 larry@lapdog2:~$


 Some *possible* causes:
 1) More than one machine thinks it has IP 192.168.2.124 and there is an
 ARP conflict.



 Verified not true



 2) You have VLAN's setup on the router and the tagging is off or the
 router isn't passing TCP traffic between the VLAN's.


 No VLANs


 3) The two machines have subnet masks that make them think they're on
 different networks (e.g. 255.255.255.0 and 255.255.255.252 or /24 and /30)


 All subnet masks are 255.255.255.0


 If the machines are DHCP, have both release and renew their lease (and
 make sure there's only one DHCP server on the network!).


 Verified only one dhcp server


 If they're static configured, check /etc/network/interfaces and make sure
 the subnet mask is the same on both.


 Only one machine (fogtest) is staticly configured )on both routers) as a
 static IP issued by DHCP


 Dig through your router configuration (I assume you only have one router,
 if not temporarily remove all but one router) to make sure you don't have
 VLAN's setup or that they're properly configured


 Only one 

Re: ssh question

2011-06-17 Thread Dazed_75
Ignore the original question.  I checked lapdog2's IP in a terminal that was
logged into a different machine.  The ssh was using the right IP but getting
this result and I cannot figure out why:

larry@hammerhead:~$ ssh -v lapdog2
 OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to lapdog2 [192.168.2.124] port 22.
 debug1: connect to address 192.168.2.124 port 22: Connection timed out
 ssh: connect to host lapdog2 port 22: Connection timed out
 larry@hammerhead:~$



On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:

 I tried to ssh from this machine to my laptop (ssh lapdog3) and find that
 ssh is somehow using an old IP instead of doing name resolution on th e name
 lapdog2 which now has a new lease on a different IP.

 1) How do I fix this?
 2) Why does ssh use an old, apparently, stored IP?

 --
 Dazed_75 a.k.a. Larry

 The spirit of resistance to government is so valuable on certain occasions,
 that I wish it always to be kept alive.
   - Thomas Jefferson




-- 
Dazed_75 a.k.a. Larry

The spirit of resistance to government is so valuable on certain occasions,
that I wish it always to be kept alive.
  - Thomas Jefferson
---
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 question

2011-06-17 Thread Joseph Sinclair
A connection timed out usually occurs due to:
1) The ip address has no host (ping the same IP address, then use telnet to 
connect to port 22)
2) tcp wrappers is dropping the connection (check /et/hosts.allow and 
/etc/hosts.deny on lapdog3)
3) the firewall on lapdog3 is dropping the connection (check the firewall 
configuration on lapdog3 via iptables-save or ufw status)
4) SSHD is not on port 22 or dropping connections (check sshd configuration on 
lapdog3)

On 06/17/2011 02:14 AM, Dazed_75 wrote:
 Ignore the original question.  I checked lapdog2's IP in a terminal that was
 logged into a different machine.  The ssh was using the right IP but getting
 this result and I cannot figure out why:
 
 larry@hammerhead:~$ ssh -v lapdog2
 OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Applying options for *
 debug1: Connecting to lapdog2 [192.168.2.124] port 22.
 debug1: connect to address 192.168.2.124 port 22: Connection timed out
 ssh: connect to host lapdog2 port 22: Connection timed out
 larry@hammerhead:~$

 
 
 On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:
 
 I tried to ssh from this machine to my laptop (ssh lapdog3) and find that
 ssh is somehow using an old IP instead of doing name resolution on th e name
 lapdog2 which now has a new lease on a different IP.

 1) How do I fix this?
 2) Why does ssh use an old, apparently, stored IP?

 --
 Dazed_75 a.k.a. Larry

 The spirit of resistance to government is so valuable on certain occasions,
 that I wish it always to be kept alive.
   - Thomas Jefferson

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



signature.asc
Description: OpenPGP digital signature
---
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 question

2011-06-17 Thread Mike Ballon
I have seen ssh timeouts on slow networks because of dns as well. ssh relies
on a reverse lookup and on very slow networks, I've seen the login process
timeout because of bad ptr data.

On Fri, Jun 17, 2011 at 9:23 AM, Joseph Sinclair
plug-discuss...@stcaz.netwrote:

 A connection timed out usually occurs due to:
 1) The ip address has no host (ping the same IP address, then use telnet to
 connect to port 22)
 2) tcp wrappers is dropping the connection (check /et/hosts.allow and
 /etc/hosts.deny on lapdog3)
 3) the firewall on lapdog3 is dropping the connection (check the firewall
 configuration on lapdog3 via iptables-save or ufw status)
 4) SSHD is not on port 22 or dropping connections (check sshd configuration
 on lapdog3)

 On 06/17/2011 02:14 AM, Dazed_75 wrote:
  Ignore the original question.  I checked lapdog2's IP in a terminal that
 was
  logged into a different machine.  The ssh was using the right IP but
 getting
  this result and I cannot figure out why:
 
  larry@hammerhead:~$ ssh -v lapdog2
  OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Applying options for *
  debug1: Connecting to lapdog2 [192.168.2.124] port 22.
  debug1: connect to address 192.168.2.124 port 22: Connection timed out
  ssh: connect to host lapdog2 port 22: Connection timed out
  larry@hammerhead:~$
 
 
 
  On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:
 
  I tried to ssh from this machine to my laptop (ssh lapdog3) and find
 that
  ssh is somehow using an old IP instead of doing name resolution on th e
 name
  lapdog2 which now has a new lease on a different IP.
 
  1) How do I fix this?
  2) Why does ssh use an old, apparently, stored IP?
 
  --
  Dazed_75 a.k.a. Larry
 
  The spirit of resistance to government is so valuable on certain
 occasions,
  that I wish it always to be kept alive.
- Thomas Jefferson
 
 
 
 
 
 
  ---
  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

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

2011-06-17 Thread Dazed_75
These machines are all gigabit ethernet and connected to the same gigabit
switch with little network traffic at the time of these attempts.

On Fri, Jun 17, 2011 at 6:23 AM, Joseph Sinclair
plug-discuss...@stcaz.netwrote:

 A connection timed out usually occurs due to:
 1) The ip address has no host (ping the same IP address, then use telnet to
 connect to port 22)


I realized after sending the message I should have included the successful
ping of lapdog2 which was done by name.  Telnet also fails.

2) tcp wrappers is dropping the connection (check /et/hosts.allow and
 /etc/hosts.deny on lapdog3)


Nothing but comments in either file.


 3) the firewall on lapdog3 is dropping the connection (check the firewall
 configuration on lapdog3 via iptables-save or ufw status)


ufw status was inactive at that time.  As far as I can tell this morning,
iptables says nothing about port 22 or ssh though last night I could have
sworn it did and said to accept.  In any case, I get the same result this
morning though I am on a different machine trying to ssh to lapdog2.


 4) SSHD is not on port 22 or dropping connections (check sshd configuration
 on lapdog3)


It is using port 22.  I do not know how to check for dropping connections.
I did check syslog and dmesg/messages.  NOTE: lapdog2 is able to ssh to this
machine but then ssh'ing back to lapdog 2 gives the same results as doing it
directly on this machine.



 On 06/17/2011 02:14 AM, Dazed_75 wrote:
  Ignore the original question.  I checked lapdog2's IP in a terminal that
 was
  logged into a different machine.  The ssh was using the right IP but
 getting
  this result and I cannot figure out why:
 
  larry@hammerhead:~$ ssh -v lapdog2
  OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Applying options for *
  debug1: Connecting to lapdog2 [192.168.2.124] port 22.
  debug1: connect to address 192.168.2.124 port 22: Connection timed out
  ssh: connect to host lapdog2 port 22: Connection timed out
  larry@hammerhead:~$
 
 
 
  On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:
 
  I tried to ssh from this machine to my laptop (ssh lapdog3) and find
 that
  ssh is somehow using an old IP instead of doing name resolution on th e
 name
  lapdog2 which now has a new lease on a different IP.
 
  1) How do I fix this?
  2) Why does ssh use an old, apparently, stored IP?
 
  --
  Dazed_75 a.k.a. Larry
 
  The spirit of resistance to government is so valuable on certain
 occasions,
  that I wish it always to be kept alive.
- Thomas Jefferson
 
 
 
 
 
 
  ---
  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

The spirit of resistance to government is so valuable on certain occasions,
that I wish it always to be kept alive.
  - Thomas Jefferson
---
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 question

2011-06-17 Thread Mike Ballon
netstat -na | grep LIST output?

ssh to localhost works?

iptables stop (just for the sake)

selinux?

On Fri, Jun 17, 2011 at 11:49 AM, Dazed_75 lthiels...@gmail.com wrote:

 These machines are all gigabit ethernet and connected to the same gigabit
 switch with little network traffic at the time of these attempts.

 On Fri, Jun 17, 2011 at 6:23 AM, Joseph Sinclair 
 plug-discuss...@stcaz.net wrote:

 A connection timed out usually occurs due to:
 1) The ip address has no host (ping the same IP address, then use telnet
 to connect to port 22)


 I realized after sending the message I should have included the successful
 ping of lapdog2 which was done by name.  Telnet also fails.

 2) tcp wrappers is dropping the connection (check /et/hosts.allow and
 /etc/hosts.deny on lapdog3)


 Nothing but comments in either file.


 3) the firewall on lapdog3 is dropping the connection (check the firewall
 configuration on lapdog3 via iptables-save or ufw status)


 ufw status was inactive at that time.  As far as I can tell this morning,
 iptables says nothing about port 22 or ssh though last night I could have
 sworn it did and said to accept.  In any case, I get the same result this
 morning though I am on a different machine trying to ssh to lapdog2.


 4) SSHD is not on port 22 or dropping connections (check sshd
 configuration on lapdog3)


 It is using port 22.  I do not know how to check for dropping connections.
 I did check syslog and dmesg/messages.  NOTE: lapdog2 is able to ssh to this
 machine but then ssh'ing back to lapdog 2 gives the same results as doing it
 directly on this machine.



 On 06/17/2011 02:14 AM, Dazed_75 wrote:
  Ignore the original question.  I checked lapdog2's IP in a terminal that
 was
  logged into a different machine.  The ssh was using the right IP but
 getting
  this result and I cannot figure out why:
 
  larry@hammerhead:~$ ssh -v lapdog2
  OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Applying options for *
  debug1: Connecting to lapdog2 [192.168.2.124] port 22.
  debug1: connect to address 192.168.2.124 port 22: Connection timed out
  ssh: connect to host lapdog2 port 22: Connection timed out
  larry@hammerhead:~$
 
 
 
  On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:
 
  I tried to ssh from this machine to my laptop (ssh lapdog3) and find
 that
  ssh is somehow using an old IP instead of doing name resolution on th e
 name
  lapdog2 which now has a new lease on a different IP.
 
  1) How do I fix this?
  2) Why does ssh use an old, apparently, stored IP?
 
  --
  Dazed_75 a.k.a. Larry
 
  The spirit of resistance to government is so valuable on certain
 occasions,
  that I wish it always to be kept alive.
- Thomas Jefferson
 
 
 
 
 
 
  ---
  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

 The spirit of resistance to government is so valuable on certain occasions,
 that I wish it always to be kept alive.
   - Thomas Jefferson

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

2011-06-17 Thread Lisa Kachold
Hi Larry,

On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:

 I tried to ssh from this machine to my laptop (ssh lapdog3) and find that
 ssh is somehow using an old IP instead of doing name resolution on th e name
 lapdog2 which now has a new lease on a different IP.


Where did you configure the name to IP address {either}:

dns
/etc/hosts


Sometimes if you are using dyndns or another dynamic dns tool, the ip does
update but it can take a few days to propigate throughout the Internet.

Check your /etc/resolv.conf file and see where you are querying for DNS.

/etc/nsswitch.conf determines if you first query files or dns (and nis which
few use still in linux).  It should say files (for /etc/hosts) first then
dns.


 1) How do I fix this?


Check to see if you have a key in $HOME/.ssh/known_hosts for your server
name or IP.

You can cache a key for either or both servername and IP.

You can turn off strict checking in /etc/ssh/sshd_conf  and it won't matter
but it's a security feature so only do this for testing.

Also, please post the exact error you are getting so we can verify what the
problem is?


 2) Why does ssh use an old, apparently, stored IP?


It caches a key for a known host based on strict dns/ip host checking as
part of SSH rfc.  This is all part of key exchange, to waylay IP spoofing
wherein someone could do a MITM attack and pretend to be your server or your
host.


 --
 Dazed_75 a.k.a. Larry

 The spirit of resistance to government is so valuable on certain occasions,
 that I wish it always to be kept alive.
   - Thomas Jefferson

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




-- 
(602) 791-8002  Android
(623) 239-3392 Skype
(623) 688-3392 Google Voice
**
HomeSmartInternational.com http://www.homesmartinternational.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 question

2011-06-17 Thread Stephen
Gonna toss out an obvious was there a hosts entry?
On Jun 17, 2011 8:49 AM, Dazed_75 lthiels...@gmail.com wrote:
 These machines are all gigabit ethernet and connected to the same gigabit
 switch with little network traffic at the time of these attempts.

 On Fri, Jun 17, 2011 at 6:23 AM, Joseph Sinclair
 plug-discuss...@stcaz.netwrote:

 A connection timed out usually occurs due to:
 1) The ip address has no host (ping the same IP address, then use telnet
to
 connect to port 22)


 I realized after sending the message I should have included the successful
 ping of lapdog2 which was done by name. Telnet also fails.

 2) tcp wrappers is dropping the connection (check /et/hosts.allow and
 /etc/hosts.deny on lapdog3)


 Nothing but comments in either file.


 3) the firewall on lapdog3 is dropping the connection (check the firewall
 configuration on lapdog3 via iptables-save or ufw status)


 ufw status was inactive at that time. As far as I can tell this morning,
 iptables says nothing about port 22 or ssh though last night I could have
 sworn it did and said to accept. In any case, I get the same result this
 morning though I am on a different machine trying to ssh to lapdog2.


 4) SSHD is not on port 22 or dropping connections (check sshd
configuration
 on lapdog3)


 It is using port 22. I do not know how to check for dropping connections.
 I did check syslog and dmesg/messages. NOTE: lapdog2 is able to ssh to
this
 machine but then ssh'ing back to lapdog 2 gives the same results as doing
it
 directly on this machine.



 On 06/17/2011 02:14 AM, Dazed_75 wrote:
  Ignore the original question. I checked lapdog2's IP in a terminal that
 was
  logged into a different machine. The ssh was using the right IP but
 getting
  this result and I cannot figure out why:
 
  larry@hammerhead:~$ ssh -v lapdog2
  OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Applying options for *
  debug1: Connecting to lapdog2 [192.168.2.124] port 22.
  debug1: connect to address 192.168.2.124 port 22: Connection timed out
  ssh: connect to host lapdog2 port 22: Connection timed out
  larry@hammerhead:~$
 
 
 
  On Fri, Jun 17, 2011 at 2:00 AM, Dazed_75 lthiels...@gmail.com wrote:
 
  I tried to ssh from this machine to my laptop (ssh lapdog3) and find
 that
  ssh is somehow using an old IP instead of doing name resolution on th
e
 name
  lapdog2 which now has a new lease on a different IP.
 
  1) How do I fix this?
  2) Why does ssh use an old, apparently, stored IP?
 
  --
  Dazed_75 a.k.a. Larry
 
  The spirit of resistance to government is so valuable on certain
 occasions,
  that I wish it always to be kept alive.
  - Thomas Jefferson
 
 
 
 
 
 
  ---
  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

 The spirit of resistance to government is so valuable on certain
occasions,
 that I wish it always to be kept alive.
 - Thomas Jefferson
---
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

2010-12-16 Thread Michael Havens
So then it would be

 ssh -L localhost:5050:?

where would I tunnel empathy too? I mean empathy is on this machine I
just want to make it available to everyone. Should I put an astriks  there?

Then I suppose for an address to tunnel to I would put the yahoo server
address (scsa.msg.yahoo.com). Is this right? Would it look like this:

 ssh -L localhost:5050:* scsa.msg.yahoo.com

I am so grateful for the help:)

One further question, which file would I put this line into to make it
available to all users? Right now there is only me but who knows in the
future!


On Thu, Dec 16, 2010 at 11:15 AM, Kevin Fries kfri...@gmail.com wrote:
Port = a port on your local computer to use to represent the foreign
service.  So in your above case, the 5050 would be your local port and the
service would be available as localhost:5050


 Host = The machine running the service

 HospPort = port the service is running on on the remote machine.

 Example:
 Many people before webmin added encryption would ssh tunnel to the webmin
 instance.  Lets say you wanted to monitor a machine at 1.2.3.4 that was
 running Webmin on its default port of 1.  But you also ran Webmin on
 your local machine on its default port of 1.  Both instances were run
 only against localhost, for security reasons.  You would pick a local port,
 say 10001 (can not use 1 because it is being used by the local
 instance), then you would issue your tunnel command as such:

  # ssh -L 10001:127.0.0.1:1 m...@1.2.3.4

 simply stated, this command would create a ssh tunnel for username me, at
 1.2.3.4.  Once established, it will create a tunnel to that machine's
 localhost instance port 1, and tunnel it to your local machines port
 10001.

 Now you would be able to access webmin on your machine at localhost:1
 and the remote machines webmin at localhost:10001

 I assume you are trying to do something similar to this, and hopefully this
 example will assist you.

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

windows live was Re: ssh

2010-12-16 Thread Michael Havens
hey... look at that I got yahoo to work! can I get my windows live id to
work on empathy?

On Thu, Dec 16, 2010 at 4:06 PM, Michael Havens bmi...@gmail.com wrote:

 So then it would be

  ssh -L localhost:5050:?

 where would I tunnel empathy too? I mean empathy is on this machine I
 just want to make it available to everyone. Should I put an astriks  there?

 Then I suppose for an address to tunnel to I would put the yahoo server
 address (scsa.msg.yahoo.com). Is this right? Would it look like this:

  ssh -L localhost:5050:* scsa.msg.yahoo.com

 I am so grateful for the help:)

 One further question, which file would I put this line into to make it
 available to all users? Right now there is only me but who knows in the
 future!



 On Thu, Dec 16, 2010 at 11:15 AM, Kevin Fries kfri...@gmail.com wrote:
 Port = a port on your local computer to use to represent the foreign
 service.  So in your above case, the 5050 would be your local port and the
 service would be available as localhost:5050


 Host = The machine running the service

 HospPort = port the service is running on on the remote machine.

 Example:
 Many people before webmin added encryption would ssh tunnel to the webmin
 instance.  Lets say you wanted to monitor a machine at 1.2.3.4 that was
 running Webmin on its default port of 1.  But you also ran Webmin on
 your local machine on its default port of 1.  Both instances were run
 only against localhost, for security reasons.  You would pick a local port,
 say 10001 (can not use 1 because it is being used by the local
 instance), then you would issue your tunnel command as such:

  # ssh -L 10001:127.0.0.1:1 m...@1.2.3.4

 simply stated, this command would create a ssh tunnel for username me, at
 1.2.3.4.  Once established, it will create a tunnel to that machine's
 localhost instance port 1, and tunnel it to your local machines port
 10001.

 Now you would be able to access webmin on your machine at localhost:1
 and the remote machines webmin at localhost:10001

 I assume you are trying to do something similar to this, and hopefully
 this example will assist you.

 Kevin Fries
 ---
 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~(-:




-- 
:-)~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: windows live was Re: ssh

2010-12-16 Thread Michael Havens
I need to learn to do my research before I ask questions I figured it
out.

On Thu, Dec 16, 2010 at 5:56 PM, Michael Havens bmi...@gmail.com wrote:

 hey... look at that I got yahoo to work! can I get my windows live id
 to work on empathy?

 On Thu, Dec 16, 2010 at 4:06 PM, Michael Havens bmi...@gmail.com wrote:

 So then it would be

  ssh -L localhost:5050:?

 where would I tunnel empathy too? I mean empathy is on this machine I
 just want to make it available to everyone. Should I put an astriks  there?

 Then I suppose for an address to tunnel to I would put the yahoo server
 address (scsa.msg.yahoo.com). Is this right? Would it look like this:

  ssh -L localhost:5050:* scsa.msg.yahoo.com

 I am so grateful for the help:)

 One further question, which file would I put this line into to make it
 available to all users? Right now there is only me but who knows in the
 future!



 On Thu, Dec 16, 2010 at 11:15 AM, Kevin Fries kfri...@gmail.com wrote:
 Port = a port on your local computer to use to represent the foreign
 service.  So in your above case, the 5050 would be your local port and the
 service would be available as localhost:5050


 Host = The machine running the service

 HospPort = port the service is running on on the remote machine.

 Example:
 Many people before webmin added encryption would ssh tunnel to the webmin
 instance.  Lets say you wanted to monitor a machine at 1.2.3.4 that was
 running Webmin on its default port of 1.  But you also ran Webmin on
 your local machine on its default port of 1.  Both instances were run
 only against localhost, for security reasons.  You would pick a local port,
 say 10001 (can not use 1 because it is being used by the local
 instance), then you would issue your tunnel command as such:

  # ssh -L 10001:127.0.0.1:1 m...@1.2.3.4

 simply stated, this command would create a ssh tunnel for username me, at
 1.2.3.4.  Once established, it will create a tunnel to that machine's
 localhost instance port 1, and tunnel it to your local machines port
 10001.

 Now you would be able to access webmin on your machine at localhost:1
 and the remote machines webmin at localhost:10001

 I assume you are trying to do something similar to this, and hopefully
 this example will assist you.

 Kevin Fries
 ---
 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~(-:




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

Re: windows live was Re: ssh

2010-12-16 Thread Lisa Kachold
On Thu, Dec 16, 2010 at 6:18 PM, Michael Havens bmi...@gmail.com wrote:

 I need to learn to do my research before I ask questions I figured it
 out.


Mike, you are an extrovert; it's common for extroverts to need to engage
others for assistance.

Doesn't mean researching will not help you, just might be good for you to
understand your social needs while confused?


 On Thu, Dec 16, 2010 at 5:56 PM, Michael Havens bmi...@gmail.com wrote:

 hey... look at that I got yahoo to work! can I get my windows live id
 to work on empathy?

 On Thu, Dec 16, 2010 at 4:06 PM, Michael Havens bmi...@gmail.com wrote:

 So then it would be

  ssh -L localhost:5050:?

 where would I tunnel empathy too? I mean empathy is on this machine I
 just want to make it available to everyone. Should I put an astriks  there?

 Then I suppose for an address to tunnel to I would put the yahoo server
 address (scsa.msg.yahoo.com). Is this right? Would it look like this:

  ssh -L localhost:5050:* scsa.msg.yahoo.com

 I am so grateful for the help:)

 One further question, which file would I put this line into to make it
 available to all users? Right now there is only me but who knows in the
 future!



 On Thu, Dec 16, 2010 at 11:15 AM, Kevin Fries kfri...@gmail.com wrote:
 Port = a port on your local computer to use to represent the foreign
 service.  So in your above case, the 5050 would be your local port and the
 service would be available as localhost:5050


 Host = The machine running the service

 HospPort = port the service is running on on the remote machine.

 Example:
 Many people before webmin added encryption would ssh tunnel to the
 webmin instance.  Lets say you wanted to monitor a machine at 1.2.3.4 that
 was running Webmin on its default port of 1.  But you also ran Webmin 
 on
 your local machine on its default port of 1.  Both instances were run
 only against localhost, for security reasons.  You would pick a local port,
 say 10001 (can not use 1 because it is being used by the local
 instance), then you would issue your tunnel command as such:

  # ssh -L 10001:127.0.0.1:1 m...@1.2.3.4

 simply stated, this command would create a ssh tunnel for username me,
 at 1.2.3.4.  Once established, it will create a tunnel to that machine's
 localhost instance port 1, and tunnel it to your local machines port
 10001.

 Now you would be able to access webmin on your machine at
 localhost:1 and the remote machines webmin at localhost:10001

 I assume you are trying to do something similar to this, and hopefully
 this example will assist you.

 Kevin Fries
 ---
 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~(-:




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




-- 

(503) 754-4452
(623) 688-3392

 http://www.obnosis.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' and 'scp' ... such a simple fix.

2010-02-13 Thread Lisa Kachold
The Zen of Troubleshooting Grasshopper is the error is the problem.

On 2/12/10, j...@actionline.com j...@actionline.com wrote:
 .
 Thanks to everyone who contributed suggestions.

 As is so often the case, the solution was so very, very simple.

 In retrospect, the long interchange of messages on this subject issue
 (which actually began way back in October 2009 with the subject scp times
 out) and recently continued over two full days with some 30 messages on
 this subject in total ... now appears to have all been totally
 unnecessary.

 The solution was so simple.

 Just 'su' to root and change the password.



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



-- 
Skype: (623)239-3392
ATT: (503)754-4452
http://obnosis.110mb.com/nuke/index.php
http://uncyclopedia.wikia.com/wiki/Arizona
---
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' and 'scp' ... such a simple fix.

2010-02-12 Thread joe
.
Thanks to everyone who contributed suggestions.

As is so often the case, the solution was so very, very simple.

In retrospect, the long interchange of messages on this subject issue
(which actually began way back in October 2009 with the subject scp times
out) and recently continued over two full days with some 30 messages on
this subject in total ... now appears to have all been totally
unnecessary.

The solution was so simple.

Just 'su' to root and change the password.



---
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' and 'scp' ... such a simple fix.

2010-02-12 Thread Craig White
On Fri, 2010-02-12 at 11:55 -0700, j...@actionline.com wrote:
 .
 Thanks to everyone who contributed suggestions.
 
 As is so often the case, the solution was so very, very simple.
 
 In retrospect, the long interchange of messages on this subject issue
 (which actually began way back in October 2009 with the subject scp times
 out) and recently continued over two full days with some 30 messages on
 this subject in total ... now appears to have all been totally
 unnecessary.
 
 The solution was so simple.
 
 Just 'su' to root and change the password.

or use a 'better' password that actually passes pam_cracklib

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

---
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 to GNOME keyring

2008-12-11 Thread Joe
That did not work for me. It looks like it's a bug in gnome-keyring.
https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/187127

I did the following to resolve the problem:

mv /usr/lib/gnome-keyring/gnome-keyring-ask 
/usr/lib/gnome-keyring/gnome-keyring-ask.orig
ln -s /bin/true /usr/lib/gnome-keyring/gnome-keyring-ask

Not the best solution, but was the only option I found that worked and 
did not seem to break anything that I use.

James Mcphee wrote:
 Google-foo says
 gconftool-2 --set -t bool /apps/gnome-keyring/daemon-components/ssh false
 http://live.gnome.org/GnomeKeyring/Ssh

 I can't say if it work, as I like the little poppup.


 On Wed, Dec 10, 2008 at 1:30 PM, der.hans [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 moin moin,

 after and upgrade to Intrepid, SSH ( run from a shell in screen ) is
 popping up a gnome-keyring GUI asking for the password to unlock a
 private
 key.

 This is essentially a DoS in addition to being annoying on many
 levels.

 Since I run it from screen and don't actually look at that desktop
 very
 often, I didn't realize there was a GUI waiting for a response. There
 should not have been.

 Once I detected the GUI I notice it refuses to yield focus.
 Double-bad.
 Ah, it'll yeild the focus, but not the keyboard. Even more double-bad.

 DISPLAY is not set, so there should be no GUI popping up for any
 reason.

 I generally run this particular command remotely, so knowing that
 a GUI
 popped up doesn't really help. Well, I can kill the GUI via
 another shell
 should I remember what the problem is.

 Any suggestions on how to turn this GUI off?

 I can remove ssh-askpass-gnome and break ubuntu-desktop.

 I can remove id_dsa.

 In other circumstances neither of those would be an option. I
 suppose I
 could use -i to specify a non-existent identity file, but
 intentionally
 breaking things generally seems like the wrong solution.

 ciao,

 der.hans
 --
 #  http://www.LuftHans.com/http://www.LuftHans.com/Classes/
 #  I've got a photographic memory,
 #  but I'm lousy photographer. - der.hans
 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
 mailto: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




 -- 
 James McPhee
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 

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


  1   2   >