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.

2017-12-13_8-17-22.png
2017-12-13_8-20-44.png
2017-12-13_8-21-27.png
joukiejoukAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

RobertSystem AdminCommented:
2

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
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.
1
kenfcampCommented:
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
0
serialbandCommented:
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.
0
kenfcampCommented:
No response from OP
I recommend points get divided between Robert and David Favor
0
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
Linux

From novice to tech pro — start learning today.