Unable to connect after setting up tunnel to lightsail instance PHPMyAdmin - amazon-web-services

After setting up my lightsail instance I tried to follow the instructions at bitnami
I used the ssh -N -L 8888:127.0.0.1:80 -i file.pem bitnami#ip to connect.
I get the expected result with nothing returned in the terminal. Now when I try to visit 127.0.0.1:8888/phpmyadmin I get an error from FF saying unable to connect. I have also tried switching the port to 433 incase that was the issue and visited 127.0.0.1:8443/phpmyadmin and still no luck.
another post suggested I add a slash at the end, that didnt work either. I have turned of my local apache server on my ubuntu machine as I felt that would help yet no show.
I have also ensured I didnt accidentally close the terminal
Any ideas ?

The issue seemed to be that the key file didnt have the right permissions.Once I corrected the permissions as specified in the docs I was able to connect but so far have got the https connection to work and just use http which is less than ideal

Related

How do I resolve a connectivity issue to Google Cloud using SSH?

I am doing my first project on Google Cloud, accessing SSH using the SSH dropdown on my VM instance and was going through the steps to set up the environment to use FileZilla to copy my project, apparently, I waited too long as I was setting up FileZilla and my SSH session timed out. Since then every time I try to access SSH, I get the following error message:
Code: 1006
Please ensure you can make a proper https connection to the IAP for TCP hostname: https://tunnel.cloudproxy.app
You may be able to connect without using the Cloud Identity-Aware Proxy.
This started happening around midnight last night and still going on this morning. I have searched and followed all the instructions pointed out on this link:
https://cloud.google.com/iap/docs/using-tcp-forwarding
and the problem persists. I have even stopped, started, and reset the VM instance which did not resolve the issue. I am hoping someone has any other suggestions I can follow beyond what can be found on this site already.
Thank you in advance for any help and suggestions.
UPDATE:. I still haven't found the solution, but I have found a way to access my instance through my local terminal on my MacBook using the gcloud command from the Google Cloud SDK.
UPDATE: I did some research and I found that I had to delete my access keys and create new ones and it solved the problem.

After SSH tunneling into localhost:6688 I get "site can`t be reached - ERR_CONNECTION_RESET"?

I finally decided to run a chainlink node on kovan, so I followed this link https://www.youtube.com/watch?v=t9Uknfw27IU&list=LL&index=8&t=555s on how to set up the node and after a few hours of work I made it happen. So after SSH tunneling into localhost:6688 I got the GUI for the chainlink operator and wrote in the password and got in.
So the next day I decided to program some jobs on the node and did the same thing as last day and got the
site can`t be reached - ERR_CONNECTION_RESET when SSH tunneling in localhost:6688 and I can see that the CL node is running in the linux box with no errors and note I dont own a router.
What I tried so far:
-switching browsers
-temporarily disabled the windows firewall
-manually opening up the port 6688
-deleting the VM instance on Google cloud platform and creating a new one
-double checking the .env file if database and other info from GCP and infuras
WSS were correct
-check the proxy settings
-cleared browser history and cookies
-deleted Winsock catalog entries
None of this has helped to resolve this issue, any help or suggestions would really be appreciated...
Managed to fix the issue myself, If anyone has the same error try this: go to your GCP and go to VM istances - firewall and add an exception for port 6688, then copy the externalIP , add it as your localhost= externalIP :6688...worked for me.

How to solve "ssh_exchange_identification: read: Connection reset" error?

I wrote the following command in CMD:
ssh ec2-user#01.01.001.001 -i node.pem
I receive this error:
ssh_exchange_identification: read: Connection reset
I am hosting a website on my Windows Laptop using an Amazon EC2 instance.
How can I get rid of this error?
I can't comment your question due to my low rep to have some further details so I give this a try.
There could be a lot of reasons for this to happen:
the IP is wrong; I suppose that the one you wrote is a fake one. If
it's not, go to your EC2 panel to check the correct one;
the username is wrong; on ubuntu servers you should use ssh ubuntu#ip-address
the server is not reachable for some reason: bad security group
configuration (is the port 22 open?), firewall on your
network/computer...
You can add the flag -vvv to your ssh command to have a very verbose log of your connection so it will we easier to debug.

I can't connect to my aws instance anymore

I've been running tomcat on my Amazon EC2 instance for a few weeks just fine but all of a sudden, I became unable to connect to it. When I use putty I can connect to it fine but when I try to connect with my browser by using ip:8080 , I can't connect anymore. I've tried restarting the instance (and of course, adjusting my input ip accordingly), restarting the tomcat server within the instance, and checking the security groups. Nothing seems to work. I have no idea why it stopped working out of the blue. How should I proceed?
There are many reasons to why you cannot connect. The best way to solve this is to follow Amazons troubleshooting tips, found here.
I had the same issue. The amazon troubleshooting did not help. Then I remembered that I ad a line in my system32/driver/etc host file when I did some site migration.
Deleted that line and I was back in business again.
Hope that helped

Trying to log in my EC2 server, but port 22 : connection refused

I don't know what's wrong with it. Here is a screenshot.
(first image is what i've done in terminal to log in my EC2 server
second image is what i've set in "System preference --> sharing --> remote login)
Yosemite is my OS. Please help me,
Assuming that you have the right key file, you could be running into some security settings issues. Check your security group and make sure that the server is accepting connections on port 22 from all addresses. Also, I generally use the IP address when SSHing into an EC2 box instead of a url, as it is much shorter and more concise. Also, make sure that your server is running Ubuntu. I know that different OS's on EC2 use different default usernames.
Your default username can be found at this page:
http://alestic.com/2014/01/ec2-ssh-username
In the end, your ssh command should be something like
ssh -i otkey.pem [username for your os]#[ip of your box]
Hope this helps!
You've got the right command for an ubuntu server. Check to make sure that security groups are configured and that you don't have Network Access Control Lists configured on your VPC. The configuration you made to the settings of your laptop are to open it up for people to log into your laptop, they don't do anything to facilitate you connecting out.