Reboot
On Sun, Apr 1, 2012 at 3:25 PM, Michael Havens <
bmike1@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 <lisakachold@obnosis.com>wrote:
>
>>
>> # 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