This forum is no longer active. Please post your questions to our new community site

Forums General

Moodle Stack SSH/RDP?

Subscribe to Moodle Stack SSH/RDP? 4 post(s), 3 voice(s)

 
Avatar sgaspar11 1 post

I installed your Ubuntu/Moodle Stack on Amazon AWS and it’s working fine from an interface standpoint:

http://ec2-184-73-33-71.compute-1.amazonaws.com…

I am trying to remote in, both via PUTTY and a VNC client and neither are working.

I use AWS for other servers I manage, and use a keypair to connect and login as root. When I try to login via SSH to the server I keep getting “Server Refused our Key” when I pick any of the following usernames:
bitnami, sudo, root, etc.

But it’s the same default key I use on all my servers…any clues?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

The user that you should to use is “bitnami”. VNC server is not installed in the machine so you can only login via SSH. Please check your AWS keys and take into account that ssh takes the keys from /home/user/.ssh/. In this case as it is necessary to use “bitnami” you should use the “-i /path/to/ssh_key” option. Try the following:

ssh -i /root/.ssh/your_aws_key bitnami@ec2-184-73-33-71.compute-1.amazonaws.com

I hope it helps.

 
Avatar jabond 20 post(s)

Having tried to solve for days a ssh keygen & “key refused” issue while login as a different created user than “bitnami” on a AWS-EC2/WP stack , I can share my last awaited found solution:

sshd_config is configured with ‘StrictModes yes’ . It should be but that implies that sshd verifies /home/user dir permissions and rights (chmod). And if they’re too permissive (eg: group can write) connection is refused with the keypair.

First try with ‘StrictModes no’. If ssh login with ‘user’ magically works, change the home/user permissions
$ sudo chmod 0755 /home/user
then rechange ‘StrictModes yes’. that worked for me. at last!!

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for posting your solution. This will help other bitnami users.

Forums General