Scp server host address disconnected что делать?

Scp server host address disconnected что делать

Клочки бумаги, на которых обычно ведутся записи, имеют обыкновение теряться, если их вовремя не подшить. Мысли на тему линукса, а может и не только его, — чтоб не забыть.

2014-07-04

Драйвер Dualshock 3, альтернатива Motionjoy и DS3 Tool

Преамбула

Как человек, руки которого привыкли к джойстикам от Sony, я долгое время использовал драйвер MotionJoy для подключения геймпада Dualshock 3 к компу. Драйвер выполнял казалось бы все необходимые функции — позволял подключать геймпад по USB или через Bluetooth, и определять его как XInput-совместимый, что позволяло использовать дуалшок для игр в стиме, например. Однако у моушнджоя при этом всплыли 3 недостатка:

  1. После рестарта винды нужно вручную запустить софт DS3 Tool,
  2. После старта DS3 Tool приходилось залезать в конфигурацию кнопок и сбрасывать все на дефолт,
  3. При уходе винды в спящий режим Motionjoy ронял ее в BSOD.

Если первую проблему можно обойти автозагрузкой, а вторая, возможно, вообще возникла только у меня (по крайней мере о ней я ни от кого не слышал), то третья проблема легко гуглится, а ее решение заключается, по отзывам, только в корректном извлечении юсб-устройства после работы. Кроме того встречаются раздраженные отзывы о плохой поддержке, кривом коде (sic!) и невозможности удалить драйвера Motionjoy иначе как вручную. В общем все это (конечно, BSOD’ы в первую очередь) побудили меня поискать альтернативу. И это оказалось несложно.

Драйвер

На форуме steam я нашел развернутый отзыв-инструкцию о «SCP DS Drivers» — альтернативном драйвере, который также поддерживает работу через USB/Bluetooth. Скачать драйвер можно из темы на форуме pcsx.net тут (вроде как там выкладываются свежие версии и лежит инструкция по установке), или вот здесь скачать проверенную лично мной версию (в архиве также находятся оригинальные драйвера геймпада xbox).

Инструкция по установке:

  1. Установить оригинальные драйвера геймпада xbox,
  2. Скачать архив и распаковать в Program Files (или в другое место, откуда этот драйвер будет в дальнейшем работать),
  3. Подключить геймпад по USB,
  4. (если необходимо) подключить Bluetooth-донгл,
  5. Дождаться установки дефолтных драйверов Windows,
  6. Запустить ScpDriver.exe,
  7. Для XP/Vista — поставить галку Force Install, для Win7/8 — не ставить,
  8. Жмякнуть Install и подождать пока в лог напишется что все прошло успешно:

После этого геймпад заработает как XInput-совместимый, а если был подключен Bluetooth-донгл, то можно отключить геймпад от USB — он сам переключится на воздух.

Спаривание геймпада с воздухом осуществляется подключением по USB во время работы сервиса, один донгл держит до 4х геймпадов. Для отключения геймпада нужно на 2 секунды зажать L1+R1+PS.

Comments

Copy link Quote reply

mavalois commented Jul 8, 2016 •

Getting a problem here. Host address keeps showing as disconnected in SCP Monitor. SCP Bus Driver is running is the device manager.

Needless to say, I’m unable to connect a PS3 controller

Anyone have a clue ?

This comment has been minimized.

Copy link Quote reply

awesomeness872 commented Jul 10, 2016

do you have a bluetooth adapter? is it supported?

This comment has been minimized.

Copy link Quote reply

mavalois commented Jul 11, 2016

I do have a bluetooth adapter. I have not yet checked if it is supported.

At the moment, I’m trying connect through USB before moving forward with anything else.

This comment has been minimized.

Copy link Quote reply

awesomeness872 commented Jul 11, 2016

do the controllers work at all? I’m pretty sure that the host address is a bluetooth thing and shouldnt matter if you’re using USB

This comment has been minimized.

Copy link Quote reply

mavalois commented Jul 11, 2016

Controllers are not working

This comment has been minimized.

Copy link Quote reply

maverick340 commented Jul 12, 2016

I seem to have the same issue. Here are the steps I followed.

  1. Plugged in the DS3 controller (original)
  2. Downloaded and installed SCPToolkit (no forced install)
  3. Windows asked me if i trust these drivers source blah blah, I said Yes.
  4. It shows all drivers installed fine.
  5. SCP monitor still shows Host : Disconnected

Anything I am doing wrong here? It used to work with Windows 7 fine.

This is a split board — You can return to the Split List for other boards.

  • Topic Archived
  1. Boards
  2. PC
  3. SCP: Pad 1 Disconnected Problem (using PS3 wired connection. no bluetooth)

User Info: gamerprince1999

User Info: ElDudorino

User Info: gamerprince1999

There’s a service that’s supposed to start with Windows. Maybe check your msconfig to see if it’s been disabled? Or uninstall + reinstall.

By service do you mean «ScpService» because when I click it, a message pops up
«Cannot start service from command line or debugger. A Windows service must be installed first (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative too or the NET START command.»

I guess this means I have to install something first. Any idea what it could be?

User Info: EinTheVariance

User Info: HydroCannabinol

Ya as they said reinstall with adm in rights.

User Info: gamerprince1999

Ya as they said reinstall with adm in rights.

Id uninstall first, then reboot, then reinstall as admin, and reboot again to test. I still use my ps3 on win7 pro fine

did you install scp as admin? It sounds like it never installed the service completely. I would suggest trying to reinstall it doing right click > run as administrator.

It worked! I reinstalled as an administrator then restarted my computer and now it works instantly like how it used to. Thanks you guys

Scp server host address disconnected что делать?

(08-13-2015, 04:56 AM) hellbringer616 Wrote: getting an error running SCP server «root hub is already running» unless i close the scpservice.exe in the task manager.
USB works again, however bluetooth still doesn’t work.

Cirago BTA6310
USBVID_0A12&PID_0001&REV_5276
USBVID_0A12&PID_0001

shows in the device config as BTH DS3 Device

You must not run the service and the server at the same time , that’s why I included the warning message! The service essentially does exactly the same as the server, plus it makes sure your dongles and controllers have the correct drivers assigned on every service start. I will ditch the server executable in future releases as it seems to just confuse people, if you need to know the status of your dongle or controllers, please use the monitor. All of your logs look well, please try pairing your controller again with just the service running. Reboot your machine and press the PS button. Nothing more. Optionally start the monitor to see what’s going on.

I repeat as this is important for all users

If you start the server and get this message:

Everything is hunky-dory! The service is running and (hopefully) doing it’s job in the background. Verify it with the monitor:

Done! No server start-up necessary.

(08-13-2015, 02:08 AM) AdamBritt Wrote: After trying this latest update I am getting host address : . Previous version before that my host address was all 0s.

Edit: After trying to uninstall again using ScpDriver, I was still stuck with SCP BTH device for my adapter. I tried uninstalling through device manager and selecting delete drivers but still they reinstalled as the Scp device. Eventually the right drivers installed (beyond generic which it was doing before). Now I have my host address back.

Looking more closely in ScpControl.ini, the DS3 Mac Address supported are 00:24:5C and 00:26:5C, but my controller MAC begins with 00:26:43. Is that why I can’t connect? Is it possible to add the ability to since it’s an actual DS3?

Edit again: I don’t know what happened but I was playing a game for a bit and when I unplugged my controller to be done for the night it connected to bluetooth. I am just going to assume Nefarius is a genius.

(08-13-2015, 03:07 AM) Magic815 Wrote: So the latest versions all work for me (and I no longer need Zadig to get the initial bluetooth firmware flashed). Awesome job there, Nefarius.

However, I’m still having my problem of Windows 8.1, 64 bit overwriting the bluetooth driver after a couple days. At that point, I either need to re-do it with ScpDriver, or use Zadig (saved from an old scp version) to get the firmware fixed again.

Читайте также  Как сделать шумку арок своими руками?

Again, I’ve already set the Windows settings to not automatically choose the firmware settings. Any other ideas?

(08-13-2015, 08:32 AM) Nefarius Wrote: Do you reboot the machine every day or do you keep it in standby/hibernation over a couple of days? The driver verification only happens once at service start e.g. at boot-up.

Yes, I shut down every night that the computer is in use. Which ends up being most days. I imagine it’s the rebooting that’s rewriting the drivers, but I don’t understand why it would since I’ve toggled that Windows setting off.

However, I have done an initial reboot after getting it all set up and working and confirmed that it is able to retain after at least one reboot. It’s just later on when I got to turn on the controller that I realize it’s no longer connecting to bluetooth and then I see the driver has defaulted.

Hello was installing scp server and got some problems, the command works well for bluetooh 1 but 2 and 3 controllers dont work.

The controler 2 always gets as BTH 00000000 None and the controler 3 is always as Reserved connected via USB or disconected, see the print that I have attached .

What did I do wrong?

Attached Files Thumbnail(s)

ScpDsxService.log.xml (Size: 515,49 KB / Downloads: 537)
ScpDsxInstaller.log.xml (Size: 22,49 KB / Downloads: 490)

(08-13-2015, 08:28 AM) Nefarius Wrote: All of your logs look well, please try pairing your controller again with just the service running. Reboot your machine and press the PS button. Nothing more. Optionally start the monitor to see what’s going on.

(08-13-2015, 09:31 PM) LaBoss Wrote: Hello was installing scp server and got some problems, the command works well for bluetooh 1 but 2 and 3 controllers dont work.

The controler 2 always gets as BTH 00000000 None and the controler 3 is always as Reserved connected via USB or disconected, see the print that I have attached .

What did I do wrong?

Hi, i’ve run into a problem that i can’t find a solution anywhere
Up until recently ScpServer was working perfectly, but after a few days of not using it simply decided that it doesn’t want to function anymore, whenever i uninstall and install again it says that it has installed properly, here’s the summary:

13/08/2015 18:04:52 [INFO] — SCP Driver Installer 1.4.5702.37500 [08/13/2015 18:04:52]
13/08/2015 18:04:52 [INFO] — Microsoft Windows 7 Ultimate Service Pack 1 (6.1.7601.65536 AMD64) detected
13/08/2015 18:04:52 [INFO] — Selected Win7 configuration
13/08/2015 18:04:56 [INFO] — Virtual Bus Created
13/08/2015 18:04:56 [INFO] — ENTER: DriverPackageInstallW
13/08/2015 18:04:56 [INFO] — Looking for Model Section [SCProductions.NTamd64].
13/08/2015 18:04:57 [INFO] — Installing INF file ‘C:ScpServerbinSystemScpVBus.inf’ (Plug and Play).
13/08/2015 18:04:57 [INFO] — Looking for Model Section [SCProductions.NTamd64].
13/08/2015 18:04:57 [INFO] — Installing devices with Id «rootScpVBus» using INF «C:WindowsSystem32DriverStoreFileRepositoryscpvbus.inf_amd64_neutral_21ca245c0e23d7a5ScpVBus.inf».
13/08/2015 18:04:57 [INFO] — ENTER UpdateDriverForPlugAndPlayDevices.
13/08/2015 18:04:59 [INFO] — RETURN UpdateDriverForPlugAndPlayDevices.
13/08/2015 18:04:59 [INFO] — Installation was successful.
13/08/2015 18:05:00 [INFO] — Install completed
13/08/2015 18:05:00 [INFO] — RETURN: DriverPackageInstallW (0x0)
13/08/2015 18:05:00 [DEBUG] — Preparing to load libwdi
13/08/2015 18:05:00 [INFO] — Running as 64-Bit process
13/08/2015 18:05:00 [DEBUG] — libwdi path: C:ScpServerbinlibwdiamd64libwdi.dll
13/08/2015 18:05:00 [DEBUG] — Loaded library: C:ScpServerbinlibwdiamd64libwdi.dll
13/08/2015 18:05:00 [INFO] — Device with specified VID (054C) and PID (0268) found, preparing driver installation.
13/08/2015 18:05:03 [INFO] — SCP DS3 Service Started.
13/08/2015 18:05:03 [INFO] — Install Succeeded.
13/08/2015 18:05:03 [INFO] — — Install Summary —
13/08/2015 18:05:03 [INFO] — SCP DS3 Service installed
13/08/2015 18:05:03 [INFO] — Bus Device installed
13/08/2015 18:05:03 [INFO] — Bus Driver installed

Indeed the Xbox 360 controller icon appears on the control panel, but none of the inputs works and the icon remain there even if i disconnect the DS3 from the USB port (I’m not using bluetooth, my install was only with the «Configure Service» and «DS3 Driver» options checked), SCPMonitor.exe says Host Address: Disconnected while Pad 1 is saying «DS3 00:00:00:00:00:00 — Reserved», my controller value only says «PLAYSTATION®3 Controller»
Through the whole time all the 4 lights on the DS3 is blinking slowly and sometimes when connecting it doesn’t flash the lights at all, only flashing when i disconnect it, the control functions perfectly on my PS3

Apologies in advance in case i didn’t report more info

Edit: Problem solved on post below

(08-14-2015, 02:09 AM) AdamBritt Wrote: Kyonne, did you have the controller plugged in while running SCPDriver? It almost looks like it didn’t install the controller driver. One thing you might try is use the uninstall option, then in Device Manager open the controller properties and on the Driver tab click uninstall and choose Delete the drivers software for this device. Once that’s done, right-click anything in there and scan for new hardware. After it re-installs the default drivers then run the install again.

Yes it was plugged, i’ve also tried uninstalling and installing the SCPDriver several times
For some reason the uninstall option is grayed out in the driver management, but before i did try installing through a different USB port which had me install the controller drivers once again, yet it also didn’t work

Edit: It’s all cool now, made it work by using the little reset button on the back of the controller, i guess i should’ve tried this earlier

(08-13-2015, 09:31 PM) LaBoss Wrote: Hello was installing scp server and got some problems, the command works well for bluetooh 1 but 2 and 3 controllers dont work.

The controler 2 always gets as BTH 00000000 None and the controler 3 is always as Reserved connected via USB or disconected, see the print that I have attached .

What did I do wrong?

I’m having a similar problem with USB. I have a DS3 and a DS4. There’s always an entry like USB 00000000 None in SCP Monitor. I can use the controllers with USB or Bluetooth just fine so long as I move them above the «blank» controller. It would be a great annoyance gone if it could be fixed.

Не работает SCP

Есть необходимость перекинуть с одного сервера на другой 76 GB файлов. Погуглил, и выяснил, что самое то — SCP. Но вот беда, он совсем никак не хочет работать. Пишет

ssh там вообще запущен?
проверь, что порт слушается и что нигде не закрыт на промежуточных хопах
для углубленного логирования используй scp -vvv

  • Показать ответы
  • Ссылка

Ну я же могу по ssh законнектиться, значит все ок, так?

  • Показать ответы
  • Ссылка

Значит sshd запущен и порт открыт. И то хлеб.
Что интересного в логах?

ЧТо-то scp -vvv выдает только это:

  • Показать ответ
  • Ссылка

мм. имел в виду к твоим существующим параметрам scp надо добавить -vvv

  • Показать ответ
  • Ссылка

Разве тут чего не так data /etc/ssh/ssh_config

  • Показать ответы
  • Ссылка

Ну я же могу по ssh законнектиться, значит все ок, так?

А на какой порт?

  • Показать ответ
  • Ссылка

По умолчанию это 22

  • Показать ответ
  • Ссылка

Это — по умолчанию. А вот «port 22: Connection timed out» заставляет подумать что:

  • Порт нестандарный
  • Фильтр пакетный стоит
  • Показать ответ
  • Ссылка

Какие варианты решения проблемы? Может есть ещё способ более-менее быстро перекачать 76 Гб инфы?

  • Показать ответы
  • Ссылка

ssh: connect to host 91.121.208.132 port 22: Connection timed out

debug1: connect to address 188.165.54.142 port 22: Connection timed out

Так и должно быть?

Читайте также  Пропала одна фаза из трех что делать?

rsync -e ssh, и покажи вывод ssh -v на этот хост

показывай с удалённого хоста /etc/ssh/sshd_config и
lsof -i :22

  • Показать ответ
  • Ссылка

Проблема-то в чем — уже понятно? Мне — нет.

Может есть ещё способ более-менее быстро перекачать 76 Гб инфы?

RSYNC/HTTP/FTP, просто с диском прийти — достаточно?

  • Показать ответ
  • Ссылка

  • Показать ответы
  • Ссылка

Сервера во Франции, вариант с диском вообще не уместен. Качать к себе, потом обратно это вообще крайний вариант.

  • Показать ответ
  • Ссылка

Судя по конфигу, порт вполне стандартный.

Остается фаервол. Его искать и настраивать.

покажи полную команду scp
и, на всякий случай, предлагаю выставить UseDNS no в конфиге sshd на той стороне (нужен будет рестарт sshd)

Так, давай еще раз, друг за другом, 2 команты:

scp -vvv параметры
ssh -vvv параметры

ВКЛЮЧАЯ строку команды, а не только выхлоп. Сделай их в одной консоли друг за другом.

  • Показать ответ
  • Ссылка

Копируете с одного сервера на другой сервер, а по ssh заходите на них со своего компьютера? То есть между серверами ssh’а нет?

  • Показать ответы
  • Ссылка

тогда sftp в руки.

Что и требовалось доказать — промеж серверами tcp/22 закрыт.

ну соединиться с сервером по ssh у тебя не вышло, же

# ssh -vvv root@mobitee.com
.
debug1: connect to address 188.165.54.142 port 22: Connection timed out
ssh: connect to host mobitee.com port 22: Connection timed out

не понял, и где тут по-твоему успешный коннект по ssh?

  • Показать ответ
  • Ссылка

Ну я же могу по ssh законнектиться

Не можешь, как видно из лога. Путаешься в показаниях 😉

# ssh -vvv root@mobitee.com
ssh: connect to host mobitee.com port 22: Connection timed out

Судя по этому, у тебя таки по SSH тоже не ходит.

Я думаю проблему мы локализовали.

про промежуточные хопы ты видимо пропустил мой намёк, давай намекну потолще:
tracepath mobitee.com/22

Это если конектится со второго сервера, а если с локальной машины, то все ок.

  • Показать ответы
  • Ссылка

файл где находится? на локальной машине?

Это если конектится со второго сервера, а если с локальной машины, то все ок.

  • Искать, кто не дает конектиться со второго сервера.
  • Копировать на локальную машину.

Это если конектится со второго сервера, а если с локальной машины, то все ок.

Знаешь, в рамках поставленной задачи это звучит из разряда:
«Это если во Франции жить, напротив ДЦ, можно было бы и тупо с хардом сходить»

Проблема найдена: SSH между серверами у тебя таки нет, соответственно и от SCP ты ничего не добьешься напрямую. Ищи другие методы, к примеру, как уже говорили — копируй на локальную, хотя это будет долго (есть подозрение).

Всем спасибо за помощь. Проблема была в следующем: айпи нового сервера попал в бан фаерволла на старом сервере.

Scp Host Address Disconnected

The best websites voted by users

(BEST SOLUTION) [ScpServer] PS3 controller connected .

· **IMPORTANT TO TURN ON ANNOTATIONS** This way of connecting to your pc with your ps3 controller wirelessly is a good alternative to as for instance motionjoy.

How to Fix ScpService Not Installing on SCP DS3 — YouTube

This tutorial is meant to help people who are having issues with Scp DS3 not installing/starting the required service to use a PS3 controller on your PC. Thi.

Host address : disconnected · Issue #372 · nefarius .

· Host address keeps showing as disconnected in SCP Monitor. SCP Bus Driver is running is the device manager. Needless to say, I'm unable to connect a …

Host Address Disconnected Cant Solve · Issue #1016 .

· Both have this same problem where it says Host Address Disconnected. I connect my ps3 controller to my pc using a USB and it seems it recognizes my controller but host address is disconnected. Also, in Device Manager it still says PS3 controller, not XBOX.

SCP: Pad 1 Disconnected Problem (using PS3 wired .

SCP: Pad 1 Disconnected Problem (using PS3 wired connection. no bluetooth) User Info: gamerprince1999. gamerprince1999 2 years ago #1. When I first installed it, it worked perfectly. A couple of days later it won’t work without me having to open the «Scp Server» window. When it’s open it works normally as if there’s no problem but the second I .

«You have been disconnected» :: SCP: Secret Laboratory Support

SCP: Secret Laboratory > Support > Topic Details. This topic has been locked Dantido. Jun 2, 2018 @ 3:09am «You have been disconnected» On all the servers, all the times I am trying to join, it says this. It says I’m surely banned by an Admin, but I am sure that I am not! . and if you can play on one server fine but a different one doesnt .

[SCP:SL] Common MP2 Issues (Read Before Posting) :: SCP .

· Linux: .configSCP Secret Laboratoryconfig

-> Make sure that you specify where the ID belongs to. If it’s a SteamID64, you need to put @steam after the ID, and if it’s a DiscordID, you need to put @discord after the ID.-> Fast fix: Type adminme in your game console (not RA) if you are the host of the server.

Top 10 results many people are interested in

SSH DISCONNECT HOST NOT ALLOWED TO CONNECT :: Support .

· Disconnected: Host not allowed to connect Disallowed connect from denied host. ‘ ‘ The server has disconnected the client because the client is not allowed to connect. Facility: SSH_LOGFACILITY_DAEMON Level: SSH_LOG_WARNING

could not resolve hostname with scp — Stack Overflow

I am accessing an ubuntu server over ssh with putty on my windows machine and trying to download a single file to my local windows machine. my windows username is Mark and my hostname per cmd is Marks I am trying the following command on the remote server . scp backup.sql [email protected]:desktop

ScpToolkit (XInput Wrapper aka ScpServer Reloaded)

· (08-13-2015, 02:08 AM) AdamBritt Wrote: After trying this latest update I am getting host address : . Previous version before that my host address was all 0s. Edit: After trying to uninstall again using ScpDriver, I was still stuck with SCP

My ps3 controllers no longer can connect through scp .

· Look for SCP DS3 Service and see if it’s Running. If not, start it. Right click on it, Properties. Go to Recovery. For First, Second, Subsequent Failures set it to ‘Restart the Service‘. Hope that fixes it.

How to fix the error “host key verification failed” – The .

Add correct host key in /home/user01/.ssh/known_hosts to get rid of this message. Offending key in /home/lcz/.ssh/known_hosts:7 RSA host key for 192.168.219.149 has changed and you have requested strict checking. Host key verification failed.

Tired of my SCP enabled PS3 controller disconnecting .

· So a while back, someone helped me in deciding which controller i should buy. I settled for using my PS3 controller with the help of some drivers. Thread — Xbox One Wireless Controller.. DA PHUQ? Post 5 — @Giulianno_D Suggested the SCP drivers. They worked great for a while… but i don’t know why things like this happen. It started a couple months ago, …

How to Troubleshoot SSH Connectivity Issues .

· Verify that the host IP address is correct for the Droplet. Verify that your network supports connectivity over the SSH port being used. Some public networks may block port 22 or custom SSH ports. You can do this by, for example, testing other hosts using the same port with a known working SSH server.

How to Connect to an SSH Server from Windows, macOS, or Linux

· Type the host name or IP address of the SSH server into the “Host name (or IP address)” box. Ensure the port number in the “Port” box matches the port number the SSH server requires. SSH servers use port 22 by default, but servers are often configured to use other port numbers instead. Click “Open” to connect.

Читайте также  Ilsac gf 5 что означает?

Устранение неполадок SSH: проблемы с подключением к серверу

В первой статье этой серии вы узнали о том, как и в каких ситуациях вы можете попробовать исправить ошибки SSH. Остальные статьи расскажут, как определить и устранить ошибки:

  • Ошибки протокола: в этой статье вы узнаете, что делать, если сбрасываются клиентские соединения, клиент жалуется на шифрование или возникают проблемы с неизвестным или измененным удаленным хостом.
  • Ошибки аутентификации: поможет устранить проблемы с парольной аутентификацией или сбросом SSH-ключей.
  • Ошибки оболочки: это руководство поможет исправить ошибки ветвления процессов, валидации оболочки и доступа к домашнему каталогу.

Для взаимодействия SSH-клиента с SSH-сервером необходимо установить базовое сетевое подключение. Это руководство поможет определить некоторые общие ошибки подключения, исправить их и предотвратить их возникновение в будущем.

Требования

  • Убедитесь, что можете подключиться к виртуальному серверу через консоль.
  • Проверьте панель на предмет текущих проблем, влияющих на работу и состояние сервера и гипервизора.

Основные ошибки

Разрешение имени хоста

Большинство ошибок подключения возникает тогда, когда ссылка на хост SSH не может быть сопоставлена с сетевым адресом. Это почти всегда связано с DNS, но первопричина часто бывает не связана с DNS.

На клиенте OpenSSH эта команда:

может выдать ошибку:

ssh: Could not resolve hostname example.com: Name or service not known

В PuTTY может появиться такая ошибка:

Unable to open connection to example.com Host does not exist

Чтобы устранить эту ошибку, можно попробовать следующее:

  • Проверьте правильность написания имени хоста.
  • Убедитесь, что вы можете разрешить имя хоста на клиентской машине с помощью команды ping. Обратитесь к сторонним сайтам (WhatsMyDns.net, например), чтобы подтвердить результаты.

Если у вас возникают проблемы с разрешением DNS на любом уровне, в качестве промежуточного решения можно использовать IP-адрес сервера, например:

ssh user@111.111.111.111
# вместо
ssh user@example.com.

Истечение времени соединения

Эта ошибка значит, что клиент попытался установить соединение с SSH-сервером, но сервер не смог ответить в течение заданного периода ожидания.

На клиенте OpenSSH следующая команда:

выдаст такую ошибку:

ssh: connect to host 111.111.111.111 port 22: Connection timed out

В PuTTY ошибка выглядит так:

Network error: Connection timed out

Чтобы исправить ошибку:

  • Убедитесь, что IP-адрес хоста указан правильно.
  • Убедитесь, что сеть поддерживает подключение через используемый порт SSH. Некоторые публичные сети могут блокировать порт 22 или пользовательские SSH-порты. Чтобы проверить работу порта, можно, например, попробовать подключиться к другим хостам через этот же порт. Это поможет вам определить, не связана ли проблема с самим сервером.
  • Проверьте правила брандмауэра. Убедитесь, что политика по умолчанию – не DROP.

Отказ в соединении

Эта ошибка означает, что запрос передается на хост SSH, но хост не может успешно принять запрос.

На клиенте OpenSSH следующая команда выдаст ошибку:

ssh user@111.111.111.111
ssh: connect to host 111.111.111.111 port 22: Connection refused

В PuTTY ошибка появится в диалоговом окне:

Network error: Connection refused

Эта ошибка имеет общие с ошибкой Connection Timeout причины. Чтобы исправить её, можно сделать следующее:

  • Убедиться, что IP-адрес хоста указан правильно.
  • Убедиться, что сеть поддерживает подключение через используемый порт SSH. Некоторые публичные сети могут блокировать порт 22 или пользовательские SSH-порты. Чтобы проверить работу порта, можно, например, попробовать подключиться к другим хостам через этот же порт.
  • Проверить правила брандмауэра. Убедитесь, что политика по умолчанию – не DROP, и что брандмауэр не блокирует этот порт.
  • Убедиться, что сервис запущен и привязан к требуемому порту.

Рекомендации по исправлению ошибок подключения

Брандмауэр

Иногда проблемы с подключением возникают из-за брандмауэра. Он может блокировать отдельные порты или сервисы.

В разных дистрибутивах используются разные брандмауэры. Вы должны научиться изменять правила и политики своего брандмауэра. В Ubuntu обычно используется UFW, в CentOS – FirewallD. Брандмауэр iptables используется независимо от системы.

Читайте также:

Чтобы настроить брандмауэр, нужно знать порт сервиса SSH. По умолчанию это порт 22.

Чтобы запросить список правил iptables, введите:

Такой вывод сообщает, что правил, блокирующих SSH, нет:

Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Если в выводе вы видите правило или политику по умолчанию REJECT или DROP, убедитесь, что цепочка INPUT разрешает доступ к порту SSH.

Чтобы запросить список правил FirewallD, введите:

Список, появившийся на экране, содержит все сервисы, которые поддерживаются брандмауэром. В списке должно быть правило:

dhcpv6-client http ssh

Если вы настроили пользовательский порт SSH, используйте опцию –list-ports. Если вы создали пользовательское определение сервиса, добавьте опцию –list-services, чтобы найти SSH.

Чтобы проверить состояние UFW, введите:

Команда вернёт доступные порты:

Status: active
To Action From
— —— —-
22 LIMIT Anywhere
443 ALLOW Anywhere
80 ALLOW Anywhere
Anywhere ALLOW 192.168.0.0
22 (v6) LIMIT Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)

В списке должен быть порт SSH.

Проверка состояния сервиса SSH

Если вы не можете подключиться к серверу по SSH, убедитесь, что сервис SSH запущен. Способ сделать это зависит от операционной системы сервера. В более старых версиях дистрибутивов (Ubuntu 14.04, CentOS 6, Debian 8) используется команда service. Современные дистрибутивы на основе Systemd используют команду systemctl.

Метод проверки состояния сервиса может варьироваться от системы к системе. В более старых версиях (Ubuntu 14 и ниже, CentOS 6, Debian 6) используется команда service, поддерживаемая системой инициализации Upstart, а в более современных дистрибутивах для управления сервисом используется команда systemctl.

Примечание: В дистрибутивах Red Hat (CentOS и Fedora) сервис называется sshd, а в Debian и Ubuntu – ssh.

В более старых версия используйте команду:

service ssh status

Если процесс работает должным образом, вы увидите вывод, который содержит PID:

ssh start/running, process 1262

Если сервис не работает, вы увидите:

В системах на основе SystemD используйте:

systemctl status sshd

В выводе должна быть строка active:

sshd.service — OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
Active: active (running) since Mon 2017-03-20 11:00:22 EDT; 1 months 1 days ago
Process: 899 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
Main PID: 906 (sshd)
CGroup: /system.slice/sshd.service
├─ 906 /usr/sbin/sshd -D
├─26941 sshd: [accepted] └─26942 sshd: [net]

Если сервис не работает, вы увидите в выводе inactive:

sshd.service — OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
Active: inactive (dead) since Fri 2017-04-21 08:36:13 EDT; 2s ago
Process: 906 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=0/SUCCESS)
Process: 899 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
Main PID: 906 (code=exited, status=0/SUCCESS)

Чтобы перезапустить сервис, введите соответственно:

service ssh start
systemctl start sshd

Проверка порта SSH

Существует два основных способа проверить порт SSH: проверить конфигурационный файл SSH или просмотреть запущенный процесс.

Как правило, конфигурационный файл SSH хранится в /etc/ssh/sshd_config. Стандартный порт 22 может переопределяться любой строкой в этом файле, определяющей директиву Port.

Запустите поиск по файлу с помощью команды:

grep Port /etc/ssh/sshd_config

Если вы уже убедились, что сервис работает, теперь вы можете узнать, работает ли он на требуемом порте. Для этого используйте команду ss. Команда netstat –plnt выдаст аналогичный результат, но команду ss рекомендуется использовать для запроса информации сокета из ядра.

В выводе должно быть указано имя программы и порт, который она прослушивает. Например, следующий вывод сообщает, что сервис SSH прослушивает все интерфейсы и порт 22.

State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:22 *:* users:((«sshd»,pid=1493,fd=3))
LISTEN 0 128 . 22 . * users:((«sshd»,pid=1493,fd=4))

Символ * и 0.0.0.0 указывает, что все интерфейсы сервера прослушиваются. Строка 127.0.0.1 значит, что сервис не является общедоступным. В sshd_config директива ListenAddress должна быть закомментирована, чтобы прослушивать все интерфейсы, или должна содержать внешний IP-адрес сервера.

Если у вас не получается самостоятельно настроить соединение SSH, вы можете обратиться за помощью к службе поддержки своего хостинг-провайдера.