Ubuntu 22.04 LTS automatic shutdown when log off to use RDP - server

I am experiencing some issues with Ubuntu 22.04 LTS.
I have logout from the Ubuntu server and connect to my Ubuntu server using Remote Desktop (Windows 11). This is the process to be able to connect to RDP.
However, after a short period of time, i experience that the server shutdown/ or go to sleep mode. I need to physically turn it off and ON again.
Can someone please share some information on why does this happen? And any possible fix?
Thank you.

Related

Cannot access headless PI via SSH after upgrading from Buster to Bullseye

Yesterday I upgraded my PI from headless Buster to headless Bullseye. I can ping my PI, but SSH no longer works. The connection is refused.
I tried to fix this problem by adding an ssh file on the boot drive. Unfortunately, ssh is not activated. The ssh file is not deleted.
Does anyone have any idea how I can solve this problem? Can I connect an external monitor to a headless installation to change the raspi-config directly on the device? A fresh installation is unfortunately not an option.

VS Code remote server extension shows "attempting to reconnect"

I use Visual Studio Code and RemoteSSH extension to connect to a remote server located across the ocean via the corporate VPN, The connection gets established when I connect via my mobile hotspot, but it keeps showing "Attempting to reconnect" asking for password repeatedly when I use my broadband.
I have compared the internet speed of both the service providers and below are the results.
1)Airtel hotspot(remote ssh works)
2)Hathway broadband(remote ssh does'nt work)
From the above images it is evident that my broadband speed(upload and download) is much better than my internet hotspot speed, In spite of this I am unable to use remote ssh to code using my broadband network, Is there something that needs to be tweaked, or are the internet speed tests in a way inaccurate?
I had similar experience and there are many threads on the subject, none of which resolved it for me.
I am working on a Windows laptop and connecting to remote Centos linux.
I also connect to company network via their VPN.
I resolved it in the following manner, maybe not all steps are required, but this is what I did -but firstly, I setup ssh keys so as not to have to keep using a password, well worth the effort.
Updated the fileWatcher in code to ignore .git folder and venv folder, this improves performance
Updated WSL to WSL2
Install a linux shell on Windows - I was already using an Ubuntu one, installed prior to vscode, but hints online suggested installing it after vscode, so I installed the Kali shell.
Installed openssh-server (to get ssh-keygen) on kali
Launched code from the kali shell, let it do its setup
Even though all extensions were installed on both machine, vscode didn't recognize that and I had to use the option in the extension section to "install exentsions on remote server"
After that, every thing was fine.
Hope that helps anyone else searching this problem.
In Airtel hotspot, your public IP address remains the same.
In case of Hathway broadband, public IP changes very frequently. So, if your VPN is redirecting you over IP, there may be possibility of delay because of authentication verification.

Not able to access the internet on CentOS 6.2?

I have installed the VMware Player to use the CentOS 6.2 on my machine having Windows XP operating system. When I am using the CentOS , I am not able to access the internet . But the sites hosted by our organization's intranet are accessible.
Also , I am able to access the internet and intranet when I am accessing it in the XP environment.
I have not created any user for the CentOS and it is avaialbe to me when I am selecting any instance of the CentOS through the VMware Player.
Looking for Help!
I had this problem too, and it seems the solution is to modify
/etc/sysconfig/network-scripts/ifcfg-eth0
So that the line reads
ONBOOT=yes instead of the default ONBOOT=no
Then restart your computer, or run ifup eth0 and you should have internet working. Since the default is to have no network, it can be tricky to find the solution if you haven't got another computer to look it up from!

Can't sftp to remote server via SSH using RSE in eclipse while on VPN(Cisco AnyConnect)

Everything is fine while I'm using Windows XP but after upgrading to windows 7, I can no longer access remote systems (vms and linux servers) using RSE in eclipse while on VPN(Cisco AnyConnect). I'm getting pop-up message RSEG1066 -- Failed to connect sshd on :22. detail button says "java.net.SocketException: Permission denied: connect"
I can access those systems via SSH in putty from the same Windows environment. Any eclipse users here experiencing the same problem?
Looks like the module used by RSE to connect to the remote server is not yet compatible with java 7. Reverting back to older version (java 6 in my case) solves the issue.

Launching applications on remote windows xp from ubuntu 10.04 machine

I have ubuntu 10.04 installed on my machine. I want to execute commands on remote windows xp machine ( I have username and password of admin account of remote machine ) so as to launch application like Internet Explorer, Notepad or some bat script. Is there any command line utility to do this via ubuntu? I tried rdesktop, winexe, ssh, telnet but they are not much of use. Can you please suggest some other way?
If you are able to install software on the Windows machine, you can use a Virtual Network Computing software (UltraVNC and RealVNC are good).
This will let you connect and interact as if you were in front of the machine.