Michael Lazin on 8 Apr 2012 08:14:08 -0700
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] sshd on sabayon
|
- From: Michael Lazin <microlaser@gmail.com>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] sshd on sabayon
- Date: Sun, 8 Apr 2012 11:14:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l8/0OTebz7SOKv4fy9yhgjuiFHX0MqfM1YbzxBpeMtw=; b=qhbdte1J+jfIkwLfBN+vK3sleZsbQkR3fNfnlfVZLbn1xioTGJjjPTMqFiLvwo+sv3 rrS9Eyy37Lb/CC3iZqDPoEsWgyFjEm5d+rd4qLOc4xdkt/SBs8vyCczFVsJUXpihhN1G 6OVwFO9SB6LpuwtmP3JX/t3lXyT4794gUQH8poFpO7ihabl9NrbZpTx9vptZitxR7WOO pE/5TGsnFQmBKOml/wI9i7YPxA3+JGFypYTGjMTUBP9TLtmYE4ABqbuOyDCDBSa9tB3L VudA+QlMO4jRMDWq931Z4+Pp/qSSybdzYKgyBW8UYrP2lnjQP6jVKe/OmAsBl3Y+Dctz FQVA==
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
tetsuo portage # /etc/init.d/sshd status
* status: started
tetsuo portage # ifconfig | grep -B 2 inet| awk '{print $1"\t"$2}'|egrep -v '(inet6|LOOPBACK|127.0.0.1)'|egrep [0-9A-Za-z]|sed -e 's/inet//g'
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>
192.168.2.136
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>
192.168.1.27
tetsuo portage # iptables -L -n
Chain INPUT (policy DROP)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain ufw-after-forward (1 references)
target prot opt source destination
Chain ufw-after-input (1 references)
target prot opt source destination
Chain ufw-after-logging-forward (1 references)
target prot opt source destination
Chain ufw-after-logging-input (1 references)
target prot opt source destination
Chain ufw-after-logging-output (1 references)
target prot opt source destination
Chain ufw-after-output (1 references)
target prot opt source destination
Chain ufw-before-forward (1 references)
target prot opt source destination
Chain ufw-before-input (1 references)
target prot opt source destination
ACCEPT udp --
0.0.0.0/0 224.0.0.251 udp dpt:5353
Chain ufw-before-logging-forward (1 references)
target prot opt source destination
Chain ufw-before-logging-input (1 references)
target prot opt source destination
Chain ufw-before-logging-output (1 references)
target prot opt source destination
Chain ufw-before-output (1 references)
target prot opt source destination
Chain ufw-logging-allow (0 references)
target prot opt source destination
Chain ufw-logging-deny (2 references)
target prot opt source destination
Chain ufw-not-local (1 references)
target prot opt source destination
Chain ufw-reject-forward (1 references)
target prot opt source destination
Chain ufw-reject-input (1 references)
target prot opt source destination
Chain ufw-reject-output (1 references)
target prot opt source destination
Chain ufw-skip-to-policy-forward (0 references)
target prot opt source destination
Chain ufw-skip-to-policy-input (7 references)
target prot opt source destination
Chain ufw-skip-to-policy-output (0 references)
target prot opt source destination
Chain ufw-track-input (1 references)
target prot opt source destination
Chain ufw-track-output (1 references)
target prot opt source destination
Chain ufw-user-forward (1 references)
target prot opt source destination
Chain ufw-user-input (1 references)
target prot opt source destination
Chain ufw-user-limit (0 references)
target prot opt source destination
LOG all --
0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
Chain ufw-user-limit-accept (0 references)
target prot opt source destination
Chain ufw-user-logging-forward (0 references)
target prot opt source destination
Chain ufw-user-logging-input (0 references)
target prot opt source destination
Chain ufw-user-logging-output (0 references)
target prot opt source destination
Chain ufw-user-output (1 references)
target prot opt source destination
tetsuo portage # cat /etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# The default requires explicit activation of protocol 1
#Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
PrintMotd no
PrintLastLog no
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/lib/misc/sftp-server
# the following are HPN related configuration options
# tcp receive buffer polling. disable in non autotuning kernels
#TcpRcvBufPoll yes
# allow the use of the none cipher
#NoneEnabled no
# disable hpn performance boosts.
#HPNDisabled no
# buffer size for hpn to non-hpn connections
#HPNBufferSize 2048
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Traceroute from the desktop shows no hops. They are connected to the same router with a wire. Could the problem be that I have two IPs and two network interfaces, and I am not binding ssh service to the right one? I want to be listening on 192.168.2.136, the wired connection.
On Sun, Apr 8, 2012 at 6:09 AM, brent timothy saner
<brent.saner@gmail.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/08/12 00:44, Michael Lazin wrote:
> Hi, I just tried out sabayon on my netbook. Before reimaging from
> ubuntu I plugged into my network and mounted the drive with sshfs
> and made a tarball of my home directory. I want to put this
> tarball back on my sabayon netbook but I can't ssh to it. I
> installed openssh and started ssh service, but the connection from
> my desktop is refused. I can ssh to localhost from my netbook, but
> ssh to my netbook from my desktop while they are plugged in through
> the same router is not working. I'm not sure what is going on.
>
couple things to try.
first, /etc/init.d/sshd status
to confirm it didn't segfault.
if that's not the case, reply and include the output of (on the netbook):
iptables -L -n
ifconfig|grep -B 2 inet|awk '{print $1"\t"$2}'|egrep -v
'(inet6|LOOPBACK|127.0.0.1)'|egrep [0-9A-Za-z]|sed -e 's/inet//g'
and the contents of /etc/ssh/sshd_config
lastly, a traceroute (from the desktop) to the IP address(es) in the
above ifconfig.
additionally, (from the desktop) an:
ssh -vv (<user@>)<IP address of netbook, see ifconfig)
would help as well.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+BY+4ACgkQ8u2Zh4MtlQrjbACfecvS4LHeK3EiL8Z0ly/e/ybT
mnYAnAo12nybrvDKa9BrAQjLXaWcBoue
=ffWJ
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
--
Michael Lazin
to gar auto estin noein te kai ennai
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug