I can ftp to the server and login, but I can't ssh, scp or sftp and they all get that same error. I have enable ssh via the command below
'svcadm enable ssh
svcadm restart ssh'
Still recieve the error, any ideas?
Main Topics
Browse All TopicsI am a solaris 10 beginner and having a problem connecting to a remoter server. I can ping the server and can ping the solaris box from the remote server. I can also connect to the remote server via a telnet session but not login. Whether I try and connect via sftp, ssh, scp I get the error stated below:
'ssh: connect to host 172.20.30.94 port 22: Connection refused'
Please help?
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.
I try and I assume it was a success, I have posted the text below.
ssh 0
The authenticity of host '0 (0.0.0.0)' can't be established.
RSA key fingerprint is 3d:aa:f1:a5:b6:f8:19:66:6b
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts.
Password:
Check these files on the remote server:
/etc/default/login:
Look for a line that starts CONSOLE=. If it is present, comment it out temporarily. Once this is done, disconnect and try to login in again remotely via telnet. This is not secure and is not a recommended long term configuration.
/etc/ssh/sshd_config
Look for a line that starts PermitRootLogin. It is typically followed by the work "no". Change it to "yes", save the file, then run this command:
svcadm restart ssh
Once this is done, disconnect and try to remotely login via ssh. This is also a generally unacceptable long term configuration due to security risks.
Per your comment "There is no firewalls involved as I have jsut transferred a file via ftp, but still can't connect via any of the other methods. Any ideas?"
Just because you can ftp to the server and it works does not necessarily mean a firewall is not involved. A firewall can be blocking port 22 but not port 21, thus you can ftp there but you cannot ssh there.
From the box try "telnet server 22" just to see if you can get a connection.
Also what is in /etc/hosts.allow and /etc/hosts.deny?
Business Accounts
Answer for Membership
by: omarfaridPosted on 2009-08-06 at 05:25:04ID: 25032409
you can not login at all with any user or particularly as root? Normally root access via telnet. ssh / scp / sftp connection refused could be that ssh server / daemon is not running. Can you ftp to the server?