How do I enable SSH (remote access) for a Linux appliance?

I am not familiar with Linux but have configured a Linux appliance. The box is configured and I can log into it via console. I never use putty and tried to SSH into but get the following below. I know am able to authenticate via console, but not SSH. I was wondering if I need to enable something to allow remote access.  If so, what commands must I put in to enable it? Please advise.

Who is Participating?
RobertSystem AdminCommented:
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Robert's comment might be correct... Except to find out, you have to modify your /etc/ssh/sshd_config, which means you have to be logged in via ssh, which is your current problem.

Refer to your original installation docs.

Normally root password is set one of these ways...

1) A default password is set, which your docs will explain.

2) You're prompted for a password during install + if you forget this, another install will be required to reset this password.

3) During install, the installer generates an ssh private/public key + emits the private key, which you must save, else a reinstall is required.

First, refer to your installer docs + determine how your initial password is generated.

One way to get around this, without any reinstall, is to generate your own keypair (via ssh-keygen) + then manually add the public part of the key into your Linux Appliance ~root/.ssh/authorized_keys file.

This will only work if you can actually access the files in your appliance as actual files. Sometimes files are managed in such a way, they can't be modified individually.
I'd have to agree with the above however that being said, IMO allowing root access via ssh is something that should be avoided If at all possible. I can't believe this is their recommended solution
Which version of Linux is McAfee Linux OS based on?  I'm not sure I'd trust them.

If it's Redhat based, then the sshd_config has root blocked from direct ssh login.  You have to log in as another "regular" user and use su with the root password to become root.

If it's Ubuntu(debian) based, then You'd have to put a ssh key in root to ssh to root.  The root password is unset by default, preventing any password login to root.  You're supposed to use the regular "admin" user (placed in the wheel group) and run sudo to elevate commands.

In both cases, you can't just ssh to root without some setup.  That's by design to keep the system a bit more secure, although anyone can circumvent it if they wish to bypass the suggested security models.
No response from OP
I recommend points get divided between Robert and David Favor
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.