Unable to connect to EC2 Ubuntu instance from Putty - amazon-ec2

Im getting the error : Putty Fatal Error. Network Error: Connection Refused.
Security Group SSH rule:
I was able to connect to the instance a few hours ago. I did not change anything. What am I missing? Please help.
Instance is running :
Putty configuration:
System Log:
Btw, i am able to RDP to the instance by following https://aws.amazon.com/premiumsupport/knowledge-center/connect-to-linux-desktop-from-windows/

Related

How to connect to mongo shell from windows cmd?

This is my first time using Mongodb, It connect normally using the IDE from Mongodb university basics m001 course but when I tried to connect from cmd it won't connect and gives me this error
*** You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
Error: Authentication failed. :
connect#src/mongo/shell/mongo.js:374:17 #(connect):2:6 exception:
connect failed exiting with code 1
I added the path to my environment & checked the network access from my Atlas and I can connect to it from anywhere
Can anyone help me with this please??

Can not connect to AWS parse server on Mac : ssh_exchange_identification: Connection closed by remote host

The image from my terminal
Hi, I am following a Swift Xcode class, and now we are building a project required to connect with AWS parse server, After tried lots of times, it still the same error: ssh_exchange_identification: Connection closed by remote host
Here is the error message:
luodeMacBook-Air:desktop luo$ chmod 400 onepicioskeypair.pem luodeMacBook-Air:desktop luo$ ssh -i "onepicioskeypair.pem" ubuntu#ec2-18-216-187-86.us-east-2.compute.amazonaws.com ssh_exchange_identification: read: Operation timed out luodeMacBook-Air:desktop luo$
Please verify you are trying with correct ip address or url.
change EC2 setting to Allow all IP address
and restart instance and try again

JDBC Connection from MAC OS(EL Capitan) to Prebuilt Oracle VM

I must have searched the entire net for a solution but no success.
I have installed a DeveloperDay prebuilt Oracle Linux 7.3 form the following site: http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html
I am able to connect to the database through SQL Developer using configurations like
Connection type : Basic
Username : scott
Password : oracle
hostname : localhost
Port : 1521
Service name : orcl
Connection is successful and I am able to query properly.
But while trying to connect from jdbc from eclipse I am unable to connect. I am getting various errors for various attempts like
jdbc:oracle:thin:#localhost:1521:orcl
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
jdbc:oracle:thin:#localhost:1521:orcl12c
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
(username and password is entered as scott and oracle respectively)
jdbc:oracle:thin:#127.0.0.1:1521:orcl12c
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
Please help to resolve this issue.
Because you try to access to a distance database, you consider VM like it is localhost and this is wrong, in fact it is another machine.
To solve this problem you should to use the IP Address of this VM not localhost, and this not easy you should to make some configuration of your VM you can follow this manuals here:
How to access Oracle DB in VirtualBox from Host (windows) and How to access localhost on Virtualbox host machine
and here
Connecting to Oracle from Your Host to a VirtualBox Guest
Hope this can help you.

Server unexpectedly closed network connection in ftp and putty - Amazon server

we are using amazon server and the Instance works fine. But, suddenly it stops in ftp and shows the below error:
Error: Server unexpectedly closed network connection
Error: Could not connect to server.
But, instance is running correctly and adminer also opens fine. Only ftp and putty does not open.

FTP stopped working on Linux server

Our FTP service from our server just stops working and we have no idea why each time
we get this error: Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server". Error: Could not connect to server
any ideas where to check in server?
If you are sure that the server is actually running. Try to restart it using something like:
service vsftpd restart
You need to replace vsftpd with whatever FTP you might be using. See if you get any erros when doing this.

Resources