Fernando de Oliveira wrote:

> This was written a bit each day. Hope I did not forget anything.

Sorry, it was difficult to follow.  Let me say a few things that may be 
repetitive.

When invoking ssh, there are several different things that may ask for a 
password:  ssh-agent on the client,  sshd on the server, pam on the 
server, ssh on the client if the key is password protected.

To see what is happening, run on the server as root:

/usr/sbin/sshd -p29 -D -d -d

Use port 29, do not detach from the server, and debug level 2.

On the client:

ssh -v -v -p29 server

You will get a fair amount of output.  If the server disconects, it will 
say why and the client will also give some messages.

----

I do not recommend using iptables unless you really need to because you 
are exposed directly to the internet.  If you do need it, add temporarily:

iptables -I1 INPUT  -p tcp --dport 29 -j ACCEPT
iptables -I1 OUTPUT -p tcp --sport 29 -j ACCEPT

----

ping generally uses ICMP, not tcp or udp.  It can be changed though. 
The rules for iptables to block ICMP generally have to be specified 
unless passing or blocking everything.   See the notes on the firewall 
section of BLFS.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to