Search For:
- Home
- Search For:
This article will guide you on how to resolve SSH connection error occur.
Sometimes while connecting to SSH servers, users often encounter "Connection refused" error by port 22. It happens because of several reasons like SSH service is not running, the port is blocked by the firewall, or the server is using a different port.
It can also occur because of the IP conflict issue.
To SSH on Ubuntu, Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon and install the openssh-server package by typing: sudo apt update sudo apt install openssh-server. Once the installation is completed, the SSH service will start automatically.
To resolve ssh connection refused:
1. Install an SSH tool such as OpenSSH on the server you want to connect to using the sudo apt install openssh-server command.
2. If your firewall is blocking your SSH connection. Disable the firewall rules blocking your SSH connection by changing the destination port's settings to ACCEPT.
This article will deal with the differences between LXC container and VM as well as which to choose. VMs are the best choice if you need to host multiple applications in the same environment for multiple purposes. LXC containers are preferred in cases where you have a single-purpose application environment.
KVM is hardware-level virtualization with its own kernel instance.
This allows the user to boot their own operating system of choice with no underlying or base OS.
And since each server is its own instance, they can be migrated without having to reboot.
Advantages to LXC:
1. It is easier to maintain and has very little overhead on deployment compared to a virtual machine. This allows for a much more lightweight cloud environment with LXC.
2. Containers also have a faster startup and stop speed, making them much more efficient overall.
3. Multiple containers can be deployed on the host system, where VMs are heavier on resources.
This article will guide you on how to create robots.txt and fix #errors related to it. Basically, we can instruct the crawler as to which page to crawl and which page not to crawl using the #robots .txt allow and disallow directives.
Web site owners use the /robots. txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol.
The "Disallow: /" tells the robot that it should not visit any pages on the site.
1. The robots. txt file can tell crawlers where to find the XML #sitemap file(s), how fast the site can be crawled, and (most famously) which webpages and directories not to crawl.
2. The robots. txt file, also known as the robots exclusion protocol or standard, is a text file that tells web robots (most often search engines) which pages on your site to crawl.
3. It also tells web robots which pages not to crawl.
txt file.
4. The asterisk after “user-agent” means that the robots.
This article will guide you on how to troubleshoot Azure #Cache for Redis #timeouts. Azure Cache for Redis regularly updates its server software as part of the managed service functionality that it provides.
Azure Cache for #Redis is a fully managed, in-memory cache that enables high-performance and scalable architectures. Use it to create cloud or hybrid deployments that handle millions of requests per second at sub-millisecond latency—all with the configuration, security, and availability benefits of a managed service.
This patching activity takes place largely behind the scene. During the failovers when Redis server nodes are being patched, Redis clients connected to these nodes may experience temporary timeouts as connections are switched between these nodes.
To help mitigate #Azure memory issues:
1. Upgrade the cache to a larger size so that you aren't running against memory limitations on the system.
2. Set expiration times on the keys so that older values are evicted proactively.
3. Monitor the used_memory_rss cache metric. When this value approaches the size of their cache, you're likely to start seeing performance issues. Distribute the data across multiple shards if you're using a premium cache, or upgrade to a larger cache size.
To fix #CPU bound on the server or on the client:
i. Check if you're getting bound by CPU on your client. High CPU could cause the request to not be processed within the synctimeout interval and cause a request to time out.
ii. Moving to a larger client size or distributing the load can help to control this problem.
iii. Check if you're getting CPU bound on the server by monitoring the CPU cache performance metric. Requests coming in while Redis is CPU bound can cause those requests to time out. To address this condition, you can distribute the load across multiple shards in a premium cache, or upgrade to a larger size or pricing tier.
This article will guide you on how the ACK scan DOS #attack works as well as methods to mitigate this.
A port scan can help an attacker find a weak point to attack and break into a computer system.
Just because you've found an open port doesn't mean you can attack it. But, once you've found an open port running a listening service, you can scan it for vulnerabilities.
Denial of service attack (DOS) is an attack against computer or network which reduces, restricts or prevents accessibility of its system resources to authorized users. The network of Bots is called botnet.
A Fraggle Attack is a denial-of-service (#DoS) attack that involves sending a large amount of spoofed UDP traffic to a router's broadcast address within a network.
It is very similar to a Smurf Attack, which uses spoofed ICMP traffic rather than UDP traffic to achieve the same goal.
Common DoS attacks:
1. Buffer overflow attacks – the most common DoS attack.
2. ICMP flood – leverages misconfigured network devices by sending spoofed packets that ping every computer on the targeted network, instead of just one specific machine.
3. SYN flood – sends a request to connect to a server, but never completes the handshake.
To prevent port scan attacks:
i. Install a Firewall: A firewall can help prevent unauthorized access to your private network.
ii. TCP Wrappers: TCP wrapper can give administrators the flexibility to permit or deny access to the servers based on IP addresses or domain names.
This article will guide you on steps to troubleshoot Redis #latency problems.
#Amazon #ElastiCache allows you to seamlessly set up, run, and scale popular open-source compatible in-memory data stores in the cloud.
Build data-intensive apps or boost the performance of your existing databases by retrieving data from high throughput and low latency in-memory data stores.
#Redis #performance monitoring metrics:
1. Used Memory
"memory_used" gives the total amount of memory in bytes that is used by the Redis server. If it exceeds physical memory, system will start swapping causing severe performance degradation.
2. Peak used memory
"memory_used_peak" metric calculates and displays the highest amount of memory in bytes consumed by the Redis server.
3. Used CPU system
The metric "cpu_used_sys" gets the total amount of system CPU consumed by the Redis server. High CPU usage is not bad as long as it doesn't exceed CPU limit.
4. Used CPU user
The metric "cpu_used_user" records the total amount of user CPU consumed by the Redis server.
5. Used CPU user children
The metric "cpu_used_user_children" records the total amount of user CPU consumed by other background processes.
6. Used CPU system children
Get the total amount of system #CPU consumed by background processes with the metric "cpu_used_sys_children".
7. Rejected connections
Use the metric "total_conn_rec" and get the total number of connections accepted by the Redis server.
8. Connected clients
Get the total number of slave connections made to the Redis server with the metric "conn_slaves".