Click to See Complete Forum and Search --> : OpenSSH rpm is fouled up
groundzero
12-05-2000, 07:20 PM
I just dled and installed OpenSSH
When I type sshd is says no command
so I tried to reinstall it from CLI with the rpm -i Openblablala.rpm
A few seconds later Im back at a promt.
So I typed rpm -q OpenSSHblablabla.rpm
It said:
Not installed.
What the heck is going on here.
BTW
I am doint this remotely from my WS at home to my firewall at work via telnet
Thanx
another BTW I have the ported RPM
------------------
Groundzer0......
Please stop me before I format again. (Im a Serial Formater)
ckevin
12-05-2000, 09:54 PM
Don't use RPM to install OpenSSH! I have tried it before and as the same result as you... FAILED! (But I don't know why...)
I suggest you to download the source to your server and compile it. Now, I can use "ssh" command in the server but I still can't use my Win SSH program to connect to my server...
So after you instll successfully, teach me how to connect, hehe http://www.linuxnewbie.org/ubb/tongue.gif
[This message has been edited by ckevin (edited 05 December 2000).]
Fandelem
12-05-2000, 10:23 PM
hmm.. if you get a second, run on over to http://www.fandelem.com/nhf-9.html - that whole document isn't done, but the section on installing OpenSSH(d) is.. try it and tell me where you get stuck on :}
regards,
~kyle
ckevin
12-05-2000, 11:45 PM
Actually after I compile the OpenSSH source, I visit your page and continue to config the file and test it as
netstat -vat | grep ssh
and I get:
tcp 0 0 *:ssh *:* LISTEN
However, I use ZOC and it only display:
[SSH] CONNECT My.com/1.1.1.1
but wait for a long time still don't display other message...
When I use PuTTY, it said
Protocol Initialization Error
So please help... thanks...
kevin
Fandelem
12-06-2000, 04:07 PM
Go check /var/log/messages and see what it is saying. If you used some of the features I had in red, (hopefully the logging one) then you will get maximum logging information which is good for working out the problems. http://www.linuxnewbie.org/ubb/smile.gif Cut and paste the log information here and we can help you further.
regards,
~kyle
ckevin
12-06-2000, 10:16 PM
I have checked the sshd_config and it is same as yours... but the /var/log/messages haven't recorded any SSH error messages... so strange... (but it can record my telnet session)
My path to sshd_config is /usr/local/etc/sshd_config
and in the config, it has no option for me to assign the log message path for any sshd error...
Do I think I need to re-install the OpenSSH? If yes, how do I delete the current OpenSSH files? (I compile it and so it's not RPM)
Thanks your help.
kevin
[This message has been edited by ckevin (edited 06 December 2000).]
Fandelem
12-06-2000, 10:34 PM
Find:
Syslog Facility AUTH
LogLevel DEBUG
if those aren't in your config file, put them in there..
then try to connect. it *will* generate something in your /var/log/messages - and cut and paste it here - it's virtually impossible for me to offer you suggestions without knowing what the logs are saying..
ckevin
12-06-2000, 11:23 PM
Actually, I have checked and has these line, the whole file is as follows:
# This is ssh server systemwide configuration file.
Port 22
#Protocol 2,1
ListenAddress 0.0.0.0
#ListenAddress ::
HostKey /usr/local/etc/ssh_host_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
AllowUsers kevin kenchow
#
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes
# Logging
Syslog Facility AUTH
LogLevel DEBUG
#obsoletes QuietMode and FascistLogging
RhostsAuthentication no
#
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
#
RSAAuthentication yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no
# Uncomment to disable s/key passwords
#SkeyAuthentication no
# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no
# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes
CheckMail no
#UseLogin no
#Subsystem sftp /usr/local/sbin/sftpd
However, after I connect to my server and have no response, I close the ZOC and go to /var/log/messages but no message add, so it's so strange...
Another problem is when I type
ssh my.com in my server, now it said:
error in loading shared libraries: libcrypto.so.0: cannot open shared file: No such file or directory
and when I check /etc/lib, there is a libcrypto.so alias to libcrypto.so.0.9.5a but there is no libcrypto.so.0.9.5a and libcrypto.so.0 file, am I anything wrong here?
Thanks very much,
kevin
Fandelem
12-07-2000, 12:00 AM
hmm, no clue then.
my only suggestion is to follow what I suggested at http://www.fandelem.com/nhf-9.html using RPMs - if you are totally fed up and can't get anything to work, give it a go around - I've had people test it and said it works.. otherwise, keep poking around.. more poking around, more learning is my saying :}
regards,
~kyle
Stackrat
12-09-2000, 02:41 AM
I think you need OpenSSL installed before you install OpenSSH.
I dunno about RPMs, but I'm positive that's what I had to do when I compiled from the sources on Slack (before the tarballs came out).
Fandelem
12-09-2000, 03:51 AM
trust me, he wouldn't have gotten that far (with an actual build of OPENSSH, as he did) - it would have stopped him and told him to get OpenSSL when he was running ./configure
somehow he messed something up in building the source though, probably - don't know what, seeing how he said there are no logs.. hard to start finding out what the problem is..