Hi,
Can you please paste your sshd.conf file on your server by removing the origional IP addresses.
Main Topics
Browse All Topicsi am trying to setup the ssh login between a linux box and freeBSD server with Cpanel.
i have generated the private, public keys on the linux box then copied to freeBSD server
ssh-keygen -t dsa
......
you can see below the debug msg when i try to ssh to the server.
debug: SshAppCommon/sshappcommon.
warning: PubkeyAuthentication configuration keyword is deprecated. Use AllowedAuthentications.
warning: Unrecognized configuration parameter authorizedkeysfile
warning: Unrecognized configuration parameter subsystem
debug: Connecting to xxx.x.xxx.xxx, port 22...
debug: Ssh2/ssh2.c:1956/main: Entering event loop.
debug: Ssh2Client/sshclient.c:132
debug: SshAuthMethodClient/sshaut
debug: SshAuthMethodClient/sshaut
debug: Ssh2Client/sshclient.c:136
debug: client supports 2 auth methods: 'publickey,password'
debug: Ssh2Common/sshcommon.c:496
debug: Ssh2Common/sshcommon.c:498
debug: SshConnection/sshconn.c:18
warning: Need basic cursor movement capability, using vt100
debug: Remote version: SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
debug: Ssh2Transport/trcommon.c:1
debug: Ssh2Transport/trcommon.c:1
debug: Ssh2Transport/trcommon.c:1
debug: Ssh2Transport/trcommon.c:1
debug: Ssh2Transport/trcommon.c:1
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:291
debug: Ssh2Common/sshcommon.c:341
debug: server offers auth methods 'publickey,keyboard-intera
debug: Ssh2AuthPubKeyClient/authc
debug: server offers auth methods 'publickey,keyboard-intera
debug: Ssh2AuthClient/sshauthc.c:
debug: server offers auth methods 'publickey,keyboard-intera
debug: Ssh2Common/sshcommon.c:136
warning: Authentication failed.
debug: Ssh2/ssh2.c:117/client_dis
Disconnected; no more authentication methods available (No further authentication methods available.).
debug: Ssh2Client/sshclient.c:139
debug: SshConnection/sshconn.c:19
debug: Ssh2Client/sshclient.c:144
debug: SshAuthMethodClient/sshaut
the error on /var/log/auth.log is:
Jun 19 15:28:21 cpanel sshd[52893]: Received signal 15; terminating.
Jun 19 15:28:21 cpanel sshd[56635]: Server listening on :: port 22.
Jun 19 15:28:21 cpanel sshd[56635]: Server listening on 0.0.0.0 port 22.
Jun 19 15:28:27 cpanel sshd[56636]: error: key_read: uudecode AAAA... (the keys)
Jun 19 15:28:27 cpanel sshd[56636]: error: key_read: uudecode AAAA... (the keys again)
can anyone tell me what went wrong?
first of all, i don't seem to find the right sshd_config file on my linux box...
thanks
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
# $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
# $FreeBSD: src/crypto/openssh/sshd_co
# 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/sb
# 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.
# Note that some of FreeBSD's defaults differ from OpenBSD's, and
# FreeBSD has a few additional options.
#VersionAddendum FreeBSD-20061110
#Port 1666
Port 22
#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_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
#PermitRootLogin forced-commands-only
#StrictModes yes
#MaxAuthTries 6
AllowUsers user1 user2 user3 user4
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile ~/.ssh/authorized_keys
#AuthorizedKeysFile .ssh/known_hosts
# 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
# Change to yes to enable built-in password authentication.
#PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable PAM authentication
#ChallengeResponseAuthenti
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'no' to disable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentic
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentic
# 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 ChallengeResponseAuthentic
#UsePAM yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding yes
#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/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
uetian1707... i have pasted the sshd_config at the hosting server. as for the one on my client box, i couldn't decide which one it is using. as i uncommented the PubkeyAuthentication line but it still pops up the following warning:
PubkeyAuthentication configuration keyword is deprecated. Use AllowedAuthentications.
i had a feeling that this problem is at the client side.
ibu1... i had a read of the article. it is just a general one on how to setup the SSH. my problem however is more complexed than that can offer. first of all the syntax of auth key on freeBSD is different from the one of Debian. you can't have multiple lines on the encrypted code.
the log says all:
warning: PubkeyAuthentication configuration keyword is deprecated. Use AllowedAuthentications.
warning: Unrecognized configuration parameter authorizedkeysfile
warning: Unrecognized configuration parameter subsystem
edit your sshd_config on FreeBSD (the server) to have:
AllowedAuthentications publickey,password,hostbas
restart your sshd server and try :-)
ok let's see. This is what I understood:
you want to connect from linux to a freebsd machine
you created your keys on the linux box.
you copied your keys to the freebsd machine
it is not working.
So let's give a step back and check:
- the use of keys is to avoid using passwords.
- you need to have the private key as id_dsa on your origin linux user ~/.ssh directory
- you need the public key added to the destination user home directory, to the file authorized_keys (maybe if it is freebsd the file can be authorized_keys2)
so if you want to connect from root to root, you need
Linux:
/root/.ssh/id_dsa
FreeBSD:
/root/.ssh/authorized_keys
I usually do cat id_dsa.pub >> /root/.ssh/authorized_keys
then you try to ssh from the linux box to the freebsd box, and it should work.
Did you do as described?
Business Accounts
Answer for Membership
by: ibu1Posted on 2008-06-19 at 00:59:34ID: 21820130
Follow this document,u might get some help in configuring ssh key king.com/w iki/index. php/ Quick_ HOWTO_:_Ch 17_:_Secur e_Remote_L ogins_and_ File_Copyi ng#Using_S SH_and_SCP _without_a _password
http://www.linuxhomenetwor