ssh connection refused on Debian 7

I cannot ssh to my Debian 7 server anymore. It happened after I tried to upgrade some packages on this old distro (including libc6…). Uptime is almost 2200 days! I do not even want to risk restarting it.

ssh -V returns OpenSSH_6.0p1 Debian-4+deb7u7, OpenSSL 1.0.1t 3 May 2016

I somehow still have an active ssh connection on Putty as a root so I can still run commands. Hopefully I will not lose it before I fix this massive issue!

nothing outputs when I run /etc/init.d/ssh restart, it just prompts a new line for new commands.

ps -f -p $(pgrep sshd) shows a pid and uid root

/usr/sbin/sshd does not exist

cat /etc/ssh/sshd_config shows nothing any different than it has always been. I run it on port 22000. No issues since 6 years until now. I now explicitly opened the port 22000 on iptables just to make sure but nothing changed.

sftp -oPort=22000 -vvv root@redacted_for_privacy shows

OpenSSH_6.0p1 Debian-4+deb7u7, OpenSSL 1.0.1t  3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to redacted_for_privacy (123.456.redacted_for_privacy.123) port 22000.
debug1: connect to address 123.456.redacted_for_privacy.123 port 22000: Connection refused
ssh: connect to host redacted_for_privacy port 22000: Connection refused
Couldn't read packet: Connection reset by peer

command netstat -tulpn | grep 22000 returns nothing, however it does return udp6 for 22

command ps aux | grep sshd returns :

root     12247  0.0  0.0  29920  1252 pts/0    T    Nov21   0:00 vim /etc/ssh/sshd_config
root     12248  0.0  0.0  29924  1308 pts/0    T    Nov21   0:00 vim /etc/ssh/sshd_config
root     25974  0.0  0.0   6312   788 pts/0    S+   01:09   0:00 grep sshd
root     31003  0.0  0.0  81232  3932 ?        Ss   Nov21   0:14 sshd: root@pts/0

vim is because i set PermitRootLogin yes (it had always been set at without-password). 31003 is sshd pid

I also tried to reinstall:
apt-get install openssh-server but it returned
openssh-server : Depends: openssh-client (= 1:6.0p1-4+deb7u4) but 1:6.0p1-4+deb7u7 is to be installed
and E: Unable to correct problems, you have held broken packages. which is probably very true considering the ugly tinkerings I tried in order to upgrade libc6!

tail -f /var/log/auth.log when I try to ssh via WinSCP does not show any new line appending. either trying on port 22 or custom 22000.

netstat -ntlp returns

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      12431/proftpd: (acc
tcp        0      0 0.0.0.0:3129            0.0.0.0:*               LISTEN      4374/(squid)
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      4917/nginx
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      7231/mysqld
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      10330/perl
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4917/nginx

I tried behind a different ip, I’m sure I did not jail myself.

The 4 websites hosted on it currently keep working as if nothing ever happened.

I am out of ideas and desperate. What else should I check/try? I believe it is not running sshd but I have not idea how to restart it. I do not have systemctl, neihter service sshd restart, and nothing in /etc/init.d/

jquery – How to fix chrome extension : Refused to run the JavaScript URL because it violates the following Content Security Policy directive:

I am trying to add the event click listener on button using jQuery.

When i click the button its works fine but getting the below error on
chrome://extension

Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.

Here is my chrome extension popup :
enter image description here

I have added the click event listener just hide and show using jQuery.

But its work fine getting error in chrome://extension.

Included JavaScript file in popup html

enter image description here

customs and immigration – UK Visitor Visa Refused, Please Help Me!

I applied for standard visitor Visa with sponsor from my fiance, but my Visa was refused with this reason below:

You have applied for leave to enter to visit the UK for 21 days for tourism.

You state that your partner is paying for all the costs in relation to your visit and I am satisfied that he is willing and able to do so. However, I must also assess your personal circumstances.

You state that you are employed as a contact centre team leader with PT VADS Indonesia earning 5000000.00 IDR (£256.68 www.oanda.com) per month. In support of your application, you have submitted your bank statement. I note that there are deposits in this account that correlate with your stated monthly income however I also note that there are other deposits that are unrelated to the amount you state you earn. For example there is a deposit of 4,750,000IDR (£243.84) made on the 11 May and then another deposit of 6,185.766IDR (£317.55) made on the 20 May. The documents you have provided do not demonstrate the origin of these funds and therefore I am not satisfied that the funds in your account are genuinely available to you for your exclusive use or that they accurately reflect your financial position.
I am not satisfied as to your intentions for visiting the UK, that you are a genuine visitor or
that you will leave at the end of the period specified by you. I therefore refuse your application under paragraph 4.2 (a) and (c) of Appendix V of the United Kingdom Immigration Rules.enter image description here

I wanna reapply but I have a doubt to put my bank statement again and history of my bank account, beside thst I actually work in shifting schedule,so every month I Will acieve different number of my salary, how I explain them?
If I reapply what exact salary I have to put there ? Can I put the basic salary only?

UK Visit visa got refused wrongly when should I re-apply?

I’m a software engineer and working as a full-time freelancer since November 2018. I have long-term clients who pay me on monthly basis milestone. It just like a work from home job as well. I applied for the UK visit visa for tourism purpose during Christmas days. Below is the timeline of this whole process

  • Online Application submitted and fee paid (UK standard visa 6-months)
    26 September 2020

  • Biometric collection and passport submission — 3 November 2020

  • Email received from UKVI Abu Dhabi (Your visa application has been
    concluded) — 15 November 2020

  • Refusal decision email received — 16 November 2020

I’m attaching the refusal letter I received with all reason of refusal they mentioned.

The 3rd point they mentioned is not making sense because they don’t know income tax ordinance of Pakistan. According to clause 133 of income tax ordinance of Pakistan, the income earned by any freelance working by selling the software development and maintenance services to foreign clients using by the freelance platform is exempt from the tax and I clearly mentioned it in my cover letter attached with my visa application. In my income tax returns copy the foreign income is also mentioned as well as the local income which I earned form my local clients. The local income for the fiscal year (2019 -2020) is 136,310. so this is the considered taxable income on the first acknowledge page of my ITR (Income tax return). And they are considering a conflict between the income I mentioned in my application, Upwork earning certificate attached and my income tax returns. How can it be justified?

Ok, the other point that a person who is a full-time freelancer and who can work from anywhere can’t get a visa?

Please guide and help me, what was mistakes and what to do next to get the UK visa?

enter image description here

The visa officer at US embassy said my visa is approved but when I check the status, it is saying refused

I have applied for F1 visa, after interviewing the visa officer said my visa is approved and gave me a blue leaflet, didn’t say anything about administrative processing.

Here is a point to be noted, at the time of the interview I failed to provide my recent photograph, the photograph I provided is more than 6 months old . There was a person who initially check every doc , and mentioned that, I said as I didn’t get enough time , hence I couldn’t manage my recent photograph . The person said don’t worry , u can submit that later.

When I arrived home , I got a mail “Please be advised to submit new photographs (2 copies) taken within the last six months, along with a copy of this email, at your pre-selected document collection center.” On next working day , I submitted my recent photograph .

Now when I am checking my status in this link https://ceac.state.gov/CEACStatTracker/Status.aspx , it is saying refused

Shall I be worried ?

enter image description here

magento2.4 – Connection refused error in command line Magento installation 2.4.1?

Magento removed web installation in 2.4.1 version, while installing from command line, I am getting below error:

 bin/magento setup:install --base-url=http://dev.magento.local/ --db-host=127.0.0.1:3307  --db-name=magento24 --db-user=root --db-password=Admin@123 --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --search-engine=elasticsearch7 --elasticsearch-host=es-host.example.com --elasticsearch-port=9200

SQLSTATE[HY000] [2002] Connection refused

In InstallCommand.php line 274:
                               
  Parameter validation failed  
                              

ssh connecting from macOS to ubuntu refused

I am trying to connect to my PC (ubuntu) from my MacBook using ssh

When I run:

ssh leo@192.168.0.22

It connects. However if I try to use my public IP it says

ssh: connect to host xx.x.xx.xxx port 22: Connection refused

I have tried changing the port to port 2222 and the connection is still refused, only using the public IP address.

MXroute deleted all my emails from their server and refused to do anything about it. Avoid.

I went to MXroute chat to ask why I can not access a control panel while using VPN. I did not want to turn it off and on just to access thei… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1819124&goto=newpost

What is causing an error 111 (“Connection refused”) in this Nginx reverse proxy setup?

Since setting up an Nginx reverse proxy on my home network, one of the applications I host on my server consistently yields an error 502: Bad Gateway when I visit its URL, with at least one corresponding error 111 (“Connection refused”) in the Nginx error log.

  • Server (“MyDomain”):
    • OS: YunoHost v. 3.8.5.7 (a Debian Stretch-based distro)
    • Hardware: An old desktop computer
    • Network Connection: via Ethernet cable to my router
  • Reverse proxy:
    • OS: Raspbian GNU/Linux 10 (buster)
    • Hardware: Raspberry Pi 4 Model B
    • Network Connection: via WiFi

The flow of network traffic looks something like this:

Internet -> Router -> Raspberry Pi reverse proxy -> ( MyDomain server -> internal reverse proxy )

That last step, “internal reverse proxy”, refers to the Nginx reverse proxy that is automatically configured and managed by the YunoHost system, which allows for several different services to be hosted and fetched.

I use YunoHost to host several services on servers on my home network, including calibreweb. I use several domains, but only one is affected by this issue–let’s call it MyDomain.com.

On June 11, I set up the Raspberry Pi reverse proxy on my home network so that I could direct traffic to two separate YunoHost servers. Before setting up that proxy, I could navigate to MyDomain.com/calibre and the calibreweb service would load. Since that date, navigating to MyDomain.com/calibre instead yields an error 502: Bad Gateway in my browser. When I check the /var/log/nginx/mydomain.com-error.log file on the MyDomain server, I see a corresponding error message:

2020/08/14 17:32:46 (error) 23605#23605: *149804 connect() failed
(111: Connection refused) while connecting to upstream, client:
192.168.0.179, server: mydomain.com, request: “GET /calibre/ HTTP/1.0”, upstream: “http://127.0.0.1:8083/calibre/”, host:
“mydomain.com”

Additionally, there has been nothing added to the /var/log/calibreweb/calibreweb-access.log file since June 11.

No other services on the mydomain.com domain are similarly affected. I can go to mydomain.com/gitea, mydomain.com/wallabag, and mydomain.com/wiki successfully. It is only calibreweb that fails in this way.

Navigating to mydomain.com/calibre loads the Calibre web app.

As mentioned above, there are two Nginx reverse proxies at play here, and I expect there is some disagreement between the two of them causing this issue. The first reverse proxy is the Raspberry Pi proxy, which directs traffic to different machines on my home network depending on what is requested. The second reverse proxy is the YunoHost built-in proxy on the MyDomain machine.

On the Raspberry Pi reverse proxy (the first reverse proxy encountered), the /etc/nginx/sites-available/xanderwhart.us.conf file looks like this:

server {
        server_name mydomain.com;
        location / {
                proxy_pass              https://192.168.0.117;
                proxy_redirect          off;
                proxy_read_timeout      60s;

                proxy_set_header        Host            mydomain.com;
                proxy_set_header        X-Real-IP       $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

                client_max_body_size 50M;
        }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot



}
server {
    if ($host = mydomain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen 80;
        server_name mydomain.com;
    return 404; # managed by Certbot


}

On the YunoHost built-in proxy (the second encountered), here’s /etc/nginx/conf.d/mydomain.com.d/calibreweb.conf:

location /calibre {
  client_max_body_size 200M;
  # Force usage of https
  if ($scheme = http) {
    rewrite ^ https://$server_name$request_uri? permanent;
  }
        proxy_pass                              http://localhost:8083;
        proxy_set_header                X-Forwarded-For                         $remote_addr;
        proxy_set_header                Host                                            $http_host;
        proxy_set_header                X-Forwarded-For                         $proxy_add_x_forwarded_for;
        proxy_set_header                X-Scheme                                        $scheme;
        proxy_set_header                X-Script-Name                           /calibre;
#        proxy_set_header               X-Remote-User                           $remote_user;

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
}
  • Restarting the Nginx service: Nothing changes
  • Restarting the Calibreweb service: Nothing changes
  • Checking the status of calibreweb with systemctl status calibreweb: Reports as loaded and active
  • Executing curl 127.0.0.1:8083 from a session on the MyDomain computer: Yields “curl: (7) Failed to connect to 127.0.0.1 port 8083: Connection refused”
  • Checking if port 8083 is open on the MyDomain computer: It is
  • Navigating to http://192.168.0.117:8083/ (the local IP address of the MyDomain computer) from my desktop computer on the same network: “Firefox can’t establish a connection to the server at 192.168.0.117:8083.”

I suspect that there is an incompatibility between the two Nginx reverse proxies based on the timing of this issue’s onset, but I am not a knowledgeable enough network admin (I’m a total newb) to identify what’s going on. All assistance is welcome; thanks in advance.

I answered incorrectly to “Have you ever been refused a visa?” in my UK Tier 4 visa application form

I made a huge mistake. My application is submitted and biometrics are done. Application is on it’s way to UKVI. I answered “No” when I should have answered “Yes”. In 2015, I was refused a residence permit to study in Denmark because the school I applied to wasn’t approved by a government authority. I didn’t know that it wasn’t a government affiliated or approved school, and applied anyway. There was nothing wrong with my application though.

While filling out my UK Tier 4 application, I completely forgot about this. It was an honest mistake. What should I do? Should I contact UKVI? I have already got admission in a HEI in London and attached my CAS and everything with the documents.
P.S – I’m from India.