this post was submitted on 10 Oct 2023
7 points (100.0% liked)

Linux

48023 readers
1020 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi Friends,

I have an Ubuntu 22.04.3 server out in AWS that I can connect via Bitvise with no problems. However, when running any kind of command (ls, cat) the session hangs and restarts. The command goes through since when i reconnect, whatever task I put through is finished (I installed RT5) but now I can't edit files or anything.

Things I've tried: Made sure ICMP is enabled throughout my network and Security Group.; Also lowered the MTU on the server (default was 9001 and it's now 1422).

Here is a wireshark capture of when the DC occurs. Any thoughts on what this is? Any way to test where this breaks down?

I appreciate any help, thank you!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

Have you looked into AWS Cloudwatch logs? That's usually the best bet to see what's happening on the cloud side of things.

[–] [email protected] 1 points 1 year ago (1 children)

I set up a log group for that instance and it showed nothing.

I don't know if I set it up wrong or if just means things are fine on that side.

[–] [email protected] 1 points 1 year ago

A few suggestions:

  • One of the most common causes for SSH sessions hanging is a security group assigned to the instance has an incoming IP address whitelist. If the IP address you are connecting from doesn't match, it won't let you connect and silently hangs. Easiest way is to whitelist every IP address range but that's not good practice.

More here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

  • It can also happen if the Security Group doesn't allow access via standard port 22. In that case, you need to explicitly set your port when connecting.

  • Finally, if you've set up 'password free' SSH, make sure the keypair is valid and you haven't messed up file access privs.

More here: https://aws.plainenglish.io/4-steps-to-connect-aws-servers-using-ssh-without-key-pairs-17c64853918c

Suggest you try a process of elimination. Use the console SSH client to verify connection. See if that works. Then try the above steps to narrow it down on the client side.

HTH.