Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

ssh problem

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Net_Spy
Apprentice
Apprentice
Posts: 170
Joined: Wed Dec 29, 2004 9:23 pm

ssh problem

  • Quote

Post by Net_Spy » Thu Aug 09, 2007 11:55 am

Greetings to All

Im having a problem with ssh.i just turn on default setting by uncomiting port 22 and protocole and usepam yes setting.when i star the service i get this message

Code: Select all

/etc/ssh/sshd_config line 81: unsupported option UsePam
but service started,and i logged in using putter from my windows machine to my gentoo.but i can not logged in using winscp
im getting

Code: Select all

Authentication log (see session log for details):
Using username "root".
No supported authentication methods left to try!

Authentication failed.
looking forward for your kind response.

Regards
Net_Spy
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Thu Aug 09, 2007 12:12 pm

Is net-misc/openssh compiled with the use-flag "pam" ?

check with:

Code: Select all

emerge -vp net-misc/openssh
enable and recompile with:

Code: Select all

USE="pam" emerge net-misc/openssh
you can also add the use flag into your /etc/make.conf or use /etc/portage/package.use

USE flags:
http://www.gentoo.org/doc/en/handbook/h ... t=2&chap=2
Top
Net_Spy
Apprentice
Apprentice
Posts: 170
Joined: Wed Dec 29, 2004 9:23 pm

  • Quote

Post by Net_Spy » Thu Aug 09, 2007 2:35 pm

ive set the use flag of "pam" re-emerge the package of openssh but still the same error of

Code: Select all

/etc/ssh/sshd_config line 81: Unsupported option UsePAM
[/]code]

looking forwartd for your kind response.

 Regards
  Net_Spy
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Fri Aug 10, 2007 7:11 am

found something:
http://forums.gentoo.org/viewtopic-t-36 ... 59ab7124c2

translation:
Problem has been fixed. "static" must not be enabled in package.use
Top
phajdan.jr
Retired Dev
Retired Dev
User avatar
Posts: 1777
Joined: Thu Mar 23, 2006 4:22 pm
Location: Poland
Contact:
Contact phajdan.jr
Website

  • Quote

Post by phajdan.jr » Fri Aug 10, 2007 12:48 pm

Just a note: using USE="..." emerge something is not a good practice. It's much better to use package.use instead (you can use tolls like flagedit to ease this task). Otherwise if you forget to enable same USE flags on the next merge of this package you risk losing some functionality or other trouble.
Top
Net_Spy
Apprentice
Apprentice
Posts: 170
Joined: Wed Dec 29, 2004 9:23 pm

  • Quote

Post by Net_Spy » Fri Aug 10, 2007 1:01 pm

thanks for your reply,but it didnt help me

well me make.cong flags are

Code: Select all

 X gnome qt3 qt4 cdr dvd alsa pam 
i dont whats wrong with it.looking forward for your kind response.

Regards
Net_Spy
Top
phajdan.jr
Retired Dev
Retired Dev
User avatar
Posts: 1777
Joined: Thu Mar 23, 2006 4:22 pm
Location: Poland
Contact:
Contact phajdan.jr
Website

  • Quote

Post by phajdan.jr » Fri Aug 10, 2007 1:15 pm

Well, it was a note about using USE env var in a commandline call of emerge. It has nothing to do with flags you have in configuration files.

About the problem - well, can you post output of 'emerge -pv openssh', as well as 'emerge -pv sys-libs/pam', as well as sshd_conf, after making sure that dynamic linking is ok on your system by running revdep-rebuild?
Top
Net_Spy
Apprentice
Apprentice
Posts: 170
Joined: Wed Dec 29, 2004 9:23 pm

  • Quote

Post by Net_Spy » Sun Aug 12, 2007 1:58 pm

well here is the out put of

Code: Select all

emerge -pv sys-libs/pam

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/pam-0.78-r5  USE="berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux)" 90 kB 

Total: 1 package (1 reinstall), Size of downloads: 90 kB

Code: Select all

emerge -pv openssh

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-misc/openssh-4.6_p1-r2  USE="X pam tcpd -X509 -chroot -hpn -kerberos -ldap -libedit (-selinux) -skey -smartcard -static*" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Code: Select all

cat /etc/ssh/sshd_config       
#       $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker 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 change a
# default value.

Port 10022
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# 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

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#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 no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials 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

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#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

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/lib/misc/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       ForceCommand cvs server
and revdep-rebuild doesnt work.looking forward for your kind response.

Regards
Net_Spy
Top
phajdan.jr
Retired Dev
Retired Dev
User avatar
Posts: 1777
Joined: Thu Mar 23, 2006 4:22 pm
Location: Poland
Contact:
Contact phajdan.jr
Website

  • Quote

Post by phajdan.jr » Sun Aug 12, 2007 6:47 pm

You see, someone posted that the "static" USEflag may be a problem. Well, your openssh is still compiled with static, and your change just didn't take effect. Re-emerge openssh and this should fix your problem, and remember that after changing USEflags you have to run emerge --newuse --update --deep world.
Top
Net_Spy
Apprentice
Apprentice
Posts: 170
Joined: Wed Dec 29, 2004 9:23 pm

  • Quote

Post by Net_Spy » Mon Aug 13, 2007 8:29 am

Greetings

thanks issue is solved.I unmerged the package and remerged it.

Regards
Net_Spy
Top
Post Reply

10 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic