I am not able to connect to my ec2 instance using ubuntu terminal by ssh.
I was able to connect to my instance before using same .pem file and following the same process. but now it shows Connection closed by 52.76.178.207 every time.
Also i am able to connect to my instance using putty for linux and using the .ppk file generated by same .pem used in above process.
Also I am able to connect to my instance using ssh for first time if I reboot my instance. But second time I get connection refused.
Same thing happens with filezilla I am able to upload files first time after rebooting the instance but not after that.
One more weird thing is happening i.e i am able to see my directory structure in filezilla but not able to upload any file using filezilla.
Thanks for the help
Thanks for the help #John Ankanna.
I still don't know what the problem is but below line fixes the problem.
echo 2 > /proc/sys/net/ipv4/tcp_mtu_probing
Related
Sorry if this isn't clear I'm not really experienced with this, I had someone help me with the initial setup but they are stumped on this as well.
In November of last year I ran a modded Minecraft server using linux on oracle cloud. When I try to ssh to the server like I used to (ssh -i "C:\Users\jlfre\Documents\ssh-key-2021-11-05.key.txt" opc#...*) it said REMOTE HOST IDENTIFICAITON HAS CHANGED.
I took a screenshot of this and it also gave me "The fingerprint for the ECDSA key sent by the remote host is SHA256:+I1kII1Qv1o40PHHpA0dYhsgxlWnbyHsUSPCQiDhzDE"
I'm not sure exactly what I did after this but I messed with something and now it no longer shows that error message and instead responds with "Permission denied (publickey)" when I try to do the ssh -i command that I shared above.
Through a lot of searching I found an oracle page where it said that oracle rotated SSH keys for security, but from there I'm lost as to how to get back into my server.
They key I am trying to use to get in is the one I used when I first created the server, that I downloaded from oracle.
Thanks for any help.
I recently downloaded and managed to start an OrientDB server/database on an AWS EC2 Linux 14.04 (I think the name is) server for an application I want to set up. I started OrientDB "as usual" by running ./server.sh in the terminal via SSH link to the EC2 server. All works fine and I can query the database while at the computer. But as soon as I leave my computer and the SSH link is broken (for example when closing the computer), so is the database, i.e. it stops.
Is there a way to go around this or do I have to set up the database in some other way?
OrientDB is provided as AWS AMI. Take a look to
http://orientdb.com/orientdb-amazon-web-services/
If you want to DIY, follow the instructions provided on
http://orientdb.com/docs/last/Unix-Service.html
Update: new link to doc:
https://orientdb.com/docs/last/admin/Unix-Service.html
Hope this helps
you can try putting full path to server.sh into /etc/rc.local before exit 0 and reboot the instance
Before running the server, run the command:
screen
This will create a persistent environment which will allow your process to keep running after you disconnect.
When you reconnect, you can use this command to reconnect to that environment:
screen -r
I have got an Amazon EC2 instance. I edited etc/profile, which has resulted in something terrible. Now, I am not able to connect to the instance from Filezilla. I am able to connect through putty but the terminal opens with lot of text. I am definitely sure this is all because of something accidental changes that I created in profile.
Is there any way I can reset etc/profile to its earlier version?
There is no way to revert to the previous version if you dont have a backup of the file / snapshot of the instance ...
Depends if you already made change but if you want the default version, you can spin up a new ec2 instance of the same type, copy the /etc/profile from the new instance into your current instance. All this can be done within an hour so it will cost you only 1 hour of an additional ec2 instance.
On my windows machine, I connect with Putty over SSH to an ec2 Linux instance and perform a download through the command line from a public web resource. When my internet connection has a hick-up the connection of my Putty terminal to the server gets lost.
My question relates to why the download operation does not continue to run on the ec2-server independent of me having a terminal window open. How can I make sure that the operation continues to run on the instance when I close my connection to it ?
There are already couple similar questions, but the answers seem not applicable to my situation.
I have setup ec2 ubuntu server successfully. Able to connect ec2 instance via ftp as well. But that is the default "ubuntu" user and gives control to all system. So I want to create a new user and allow them access to /var/www folder and they can not see anything else. Even sharing a private key is dangerous. I have been googling for last one day but not able to find any solution. Don't have much linux server knowledge but by following steps, I able to achieve it.
I created one user with password via terminal, allowed set that new user's home dir to /var/www and tried to connect via filezilla. But could not connect and gives error ECONNREFUSED - Connection refused by server
I don't know what you did to set up ftp, but you probably want to install and configure vsftp. There is a very good summary of steps here.