BookmarkSubscribeRSS Feed
joshuamosesb
Fluorite | Level 6

Based on SAS-Analytics-U/How-to-Set-Up-SAS-University-Edition-on-Amazon-Web-Services-AWS/ the base setup is ready & able to access SAS Information Center & start SAS Studio.

similar to issue reported by @john4ori, I'm also unable to connect to EC2 instance directly from SSH or PUTTY client.

The user-name to connect to EC2 instance is not clearly mentioned in the Usage Guide. I tried the with values `root`,`centos`,`sasdemo` but still getting error message: `"Error: No supported authentication methods available".`

Any help in this regards is much appreciated, Thanks

5 REPLIES 5
AnandVyas
Ammonite | Level 13

Hi @joshuamosesb ,

 

I followed the steps in the link you have attached and could see that there is no mention of steps to connect to the instance using terminal.

 

Could you check the security group of the instance you have launched, if it allows to connect to SSH service on port 22?

This is the group - SAS University Edition-SAS 9-4 M6-AutogenByAWSMP-1 mentioned in this steps.

jimfowler
SAS Employee

SAS University Edition is not meant to accessed via ssh. In the downloadable version of SAS UE, there is not even an sshd server in the image. In the AWS version of SAS UE, the only reason that there is an ssh interface at all is so that the AWS admins can use it to do a security scan of the image.

 

SAS University Edition is designed to be accessed via web browser. From your AWS console, get the Public DNS for the URL and use the instanceID as the password. If you want to upload/download files to SAS UE, you can use the file upload/download facility built into SAS Studio.

joshuamosesb
Fluorite | Level 6

Thank you @AnandVyas for the hint on `Security Group` & @jimfowler for the missing `sshd` in AMI.

 

I recreated the setup by following AWS-instance setup steps given in How-to-Set-Up-SAS-University-Edition-on-Amazon-Web-Services-AWS-Update by @danielduval0 

 

In step#5 Launch Instance, select `Launch Through Console` and in AWS Create Instance Console: step 3: Configure Instance Details in Advanced Details > User Data field (refer to attached screen-shot)

sample user datasample user databased on the sample user-data

#!/bin/bash
sudo yum update -y;
sudo yum install -y openssh-server;
sudo service sshd start;
# To configure the sshd daemon to start automatically at boot time:
sudo chkconfig sshd on --level 2,3,4,5;
sudo usermod -a -G sasdemo sasdemo chown -R sasdemo:sasdemo;

I added the above script snippet, then reviewed and created the instance with an existing Key Pair.

The instance got launched successfully, but still not able to connect using `ssh` either thru aws-console / form local ssh-client 

jimfowler
SAS Employee

I did not say that sshd is missing in the AMI. There are 2 versions of UE available. There is the AMI version on AWS Marketplace and there is a downloadable version which is an OVA file that you can download and run on your own local machine using VirtualBox or VMWare. The AMI version to which your are trying to connect does have an sshd, but it is there solely for the purpose of allowing Amazon Marketplace to do a security scan of the image prior to putting it on Marketplace. Neither the AMI version nor the downloadable version were meant to be connected to end users via ssh. They are intended to be self maintaining appliances that are accessed from a web browser. The downloadable version supports shared folders on your local machine which gives you another way to easily move data and SAS code in and out of SAS Studio and JupyterLab. The AMI version, lacking shared folder support only provides the SAS Studio upload/download.

joshuamosesb
Fluorite | Level 6

ok Thank you @jimfowler  for the clarification.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1767 views
  • 0 likes
  • 3 in conversation