how can i get access to my Linux server using SSH?

when i try to login to my server using Nomachine (Nx) it gives me a message saying The NX service is not available or the NX access was disabled on Host

here are the details:

NX> 203 NXSSH running with pid: 22392
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

how can i fix this issue?

i have used both the private and public key.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

http:// thevpn.guruCommented:
Maybe you are trying with the wrong username the key you use must be included in the .ssh directory within home directory of the user account you are trying to logon with
willlkAuthor Commented:
i am using the correct username. the ssh key is in the directory
Luqman ShantalPrincipalCommented:
You can review the settings systematically.

First of all, make sure that the service is up an running on both sides.
You've to check your firewall/security settings including open and closed ports.

type: netstat -nl to check your network settings.
check with the snoop command: snoop host1 host2
You can restart the network and xinetd services if necessary.
If NIS is deployed try to restart it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
willlkAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.