R server issues connecting to internet

Hello!
I'm trying use R server. I installed following this: RStudio Server - Posit
I get this warning:
WARNING: You are configured to use the CRAN mirror at https://cran.rstudio.com/. This mirror supports secure (HTTPS) downloads however your system is unable to communicate securely with the server (possibly due to out of date certificate files on your system). Falling back to using insecure URL for this mirror.

And I can't install packages. It seems that R cannot connect to the internet. Does anyone has any solutions to this? I'm connecting ssh in Linux server.
Thanks,
Natalia

Hi Natalia and welcome to community.rstudio.com!

Below are two support threads on this topic. As Kevin mentions in both, "It's possible that your antivirus or firewall is blocking the port(s) that R is attempting to use for communication with the CRAN servers. Does temporarily disabling your antivirus help here?"

Could you follow the steps suggested and let us know what happens?

https://support.rstudio.com/hc/en-us/community/posts/211542108-R-Studio-Connection-fail-unable-to-download-Packages-

Similar result here too: WARNING: You are configured to use the CRAN mirror at https://cran.rstudio.com/. This mirror supports secure (HTTPS) downloads however your system is unable to communicate securely with the server.