LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-13-2008, 11:22 AM   #1
Smartnow
LQ Newbie
 
Registered: Mar 2008
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
Question No SSH after unwished reboot


I have install Gentoo on both PC, there are far away.

PC A, ADSL Router, DynDNS Account.

PC B, direct Internet, Static Address.

Configurations for both PCs:

/etc/ssh/ssh_config all default but
Port xxxx
Compression yes
# http://gentoo-wiki.com/TIP_SSH_Socket
Host *
ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p

/etc/sshd_config all default but
Port xxxx
PermitRootLogin no
# http://gentoo-wiki.com/TIP_SSH_Reverse_Tunnel
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 9999

ssh-keygen -t dsa --> for all User on both Site.


It was wonderful, but B had have a unwished reboot. In this Moment PC does emerge -auvND world

B could establish a Link to A. Normal Internet is good.

ssh -p xxxx user@something.com

A couldn't establish a Link to B. Normal Internet is good.

ssh -p xxxx user@123.456.789.12

There are only the long Message:

ssh -p xxxx -l -v -v user@123.456.789.12
OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/root/.ssh/socket-user@123.456.789.12:xxxx" does not exist
debug1: Connecting to 123.456.789.12 [123.456.789.12] port xxxx.
debug1: connect to address 123.456.789.12 port xxxx: Connection timed out
ssh: connect to host 123.456.789.12 port xxxx: Connection timed out

On both PCs User could login to localhost.

ssh -p xxxx -v -v -l user localhost

On both PCs Root could login to localhost. I have this permitted temporary in the etc/ssh/sshd_config.

ssh -p xxxx -v -v -l root localhost

tcpdump -vv on B display attempt Logins from A to B, but the Line couldn't be established.


The Ports xxxx TCP for SSH are open in the Firewall and ADSL Router on A and in the Firewall on B.

emerge -a sys-auth/pambase sys-libs/pam libtool openssh keychain

revdep-rebuild

I have renamed

/etc/ssh
/root/.ssh
/home/user/.ssh

and make new Configuration, but no Success.


Thanks for Help.

Regards,
 
Old 04-13-2008, 07:08 PM   #2
Smartnow
LQ Newbie
 
Registered: Mar 2008
Distribution: Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Smile

After long Try, I have success.

Guarddog is perhaps be open when were reebot, and have memorize something wrong, although had good displays.

After I have deactivate firewall, all are the best.

Then I have from A to B copy /etc/rc.firewall.

Son had little changed the Ports isnt same.

I have changed Configurations

/etc/ssh/ssh_config
Port xxxx
Protocol 2
#Compression delayed --> Probably is needed only one Site this and in Server Configuration.
TCPKeepAlive no
ServerAliveInterval 30
ServerAliveCountMax 99999

# http://gentoo-wiki.com/TIP_SSH_Socket
Host *
ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p


/etc/ssh/sshd_config
Port xxxx
Protocol 2
Compression delayed
PermitRootLogin no

# http://gentoo-wiki.com/TIP_SSH_Reverse_Tunnel
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 99999

Are this Configurations good?

Thanks many

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
who gave the last reboot command in ssh tanveer Linux - Server 9 08-14-2007 08:08 AM
ssh denies putty after windows reboot kav Linux - Networking 3 03-20-2007 09:14 AM
Debian SSH does not start on reboot renegadeavenger Debian 5 01-31-2007 09:50 AM
Can't reboot via ssh, but can from local terminal xymian Linux - Networking 2 09-05-2005 10:04 AM
Reboot from ssh v00d00101 Linux - Newbie 3 07-09-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration