Unable to access sftp server directly from browser - amazon-web-services

I have created a sftp server for linux ec2 instance on aws. I have also mount the s3 bucket on linux using s3fs.
Now, any third party is able to access the sftp server using WinSCP. However, I am looking for the ways to access this server using browser url.
I have tried something like:
sftp://username:password#hostip
But it opens through the WinScp applocation and not through the browser directly.
Are they any ways to achieve it directly from browser?

skip the Linux layer and allow direct access to the bucket from the web
as described here
https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

Related

Transfer files to/from windows server on aws (lightsail)

I created a windows server 2019 instance using lightsail. Using the rdp client on my home windows 10 machine, I am able to connect.
However, file transfer is disabled. I tried these instructions without success using both fileZilla and winSCP - mainly with SFTP with a downloaded private key.
Has anyone managed to connect and transfer files from these clients to a windows server instance? I would prefer a direct connection via FTP in case SFTP for Windows server requires the setup of a dedicated SFTP server to reduce costs.
By the way, I opened all protocols on the machine
In order to be able to transfer files, you need to install a FTP service and use a FTP client to be able to connect and exchange files.
You could use Filezilla for both.
You install the server.
Then you need to configure protocols specifications (use a certificate - you can generate one), users (with virtual path and local path).

S3 Object cannot be viewed from browser in ClientVPN Private Subnet

We've a local system server in AWS VPC Private Subnet, and we have configured AWS ClientVPN to access that instance with that VPN Client called Pritunl. And we've stored all of documents and images in AWS S3 that configured with VPC Endpoint regarding that documentation https://aws.amazon.com/premiumsupport/knowledge-center/s3-private-connection-no-authentication
Problem is everything is working fine as accessing that server with browser when we connect VPN Client to that server. But we cannot access to S3 Object in browser https://myprivatebucket.s3.amazonaws.com/images/bd3c6d93-ed68-48c8-939c-91bdcb3e6b6b.png as that image cannot be displayed or downloaded in browser. But when I ssh to that server and type wget https://myprivatebucket.s3.amazonaws.com/images/bd3c6d93-ed68-48c8-939c-91bdcb3e6b6b.png, that image was downloaded successfully.
Please let me know how to make how to display or able to download that object from browser.

How to access Amazon EC2 files via web browser

So I have an Amazon EC2 Free Tier Instance with Debian Jessie. There's a software running that generates an html file I'd like to access remotely.
When connected to the instance via SSH, I can remotely open a web browser and go to 127.0.0.1:8083/index.html?PARAMETER1=...&PARAMETER2=...
Now doing this is very tedious because the browser is slow. I'd like to be able to access to this file directly using the web browser in my local machine.
How do I do this? I tried replacing 127.0.0.1 with the Public IPv4 but it won't work. Do I have to open the port?
Thanks.
You would need to open port 8083 using the security groups inbound rules for the ec2 instance. Then use the public IP to access the file.

How to restrict access to EC2 Spring Boot based REST endpoints

I have static web hosted on AWS S3 and Spring Boot based REST application running on EC2.
How would I restrict access to EC2? Currently, I have opened access to world on 8080 port, but this is not what i would like to have when I migrate to production. If I do not open access to world, I have connection timeout error in the browser's console.
Is there some way to allow only S3 based bucket to see EC2 instance and revoke world access?
But the code isn't running on the "S3 based bucket", it is running in each of your user's browsers. So you have to allow access to the world since you don't know ahead of time each IP address of each user you will ever have.
You should look into something like JSON Web Tokens or AWS Cognito or at least use API Keys.

HTML5 console client for AWS EC2 via API?

I see that you can connect to an AWS EC2 via SSH or a Java plugin. Is there a way to access the EC2 image via an HTML5 client that does not require a java plugin?
Is there a way to connect to an EC2 VM via the EC2 API?
Try the FireSSH Chrome application, using it on my Chromebook and it works fine. It also allows importing the PEM file (other clients require that you convert the keys first).