2016-06-19 4 views
3

많은 게시물이 동일한 문제가 있지만 답변이 없거나 실제 해결책이없는 것을 보았습니다. 나는 라즈베리 파이 3을 가지고 있고 나는 최신 버전의 rasbian을 설치했다. 모니터도 키보드도 없으므로 SSH를 통해 라즈베리를 설정하고 싶습니다. 내가 연결을 시도하고 삼일이었다 그러나 나는 항상이 오류를 받고 있어요 : {IP} 포트에 의해 폐쇄Raspberry pi 3, ssh 연결이 원격 IP 포트 22로 닫힘

연결 22

어떤 도움을 크게 감상 할 수있다!

+0

초기 SSH 구성은 모니터와 키보드를 사용하거나 이미지에 미리 구성해야합니다 (외관상으로는 분명하지 않음). – Yaron

+0

필자는 반드시!, 필자는 rc.local을 사용하여 SSH를 시작했으며 nmap을 사용하는 SSHD가 작동하고 포트 22가 열려 있음을 볼 수 있습니다. 다음을 살펴보십시오. https://www.youtube.com/watch?v=toWBmUsWD6M – Niroda

+0

포트가 열려있을 가능성이 있으므로 아마도 다른 시스템 연결 방법을 시도해보고 이것이 발생하는 이유를 확인하고 실패한 것을 볼 수 있습니다 이 명령을 사용하는 시도 :'cat /var/log/auth.log | grep 'sshd. * Invalid', 물론 직접적인 터미널 세션을 만들어야합니다. – Yaron

답변

2

Raspbian disable ssh by default의 최신 버전을 보인다

In the past, SSH was enabled by default, so people using their Pi headless could easily update their SD card to a new image. Switching SSH on or off has always required the use of raspi-config or the Raspberry Pi Configuration application, but to access those, you need a screen and keyboard connected to the Pi itself, which is not the case in headless applications. So we’ve provided a simple mechanism for enabling SSH before an image is booted.

The boot partition on a Pi should be accessible from any machine with an SD card reader, on Windows, Mac, or Linux. If you want to enable SSH, all you need to do is to put a file called ssh in the /boot/ directory. The contents of the file don’t matter: it can contain any text you like, or even nothing at all. When the Pi boots, it looks for this file; if it finds it, it enables SSH and then deletes the file. SSH can still be turned on or off from the Raspberry Pi Configuration application or raspi-config; this is simply an additional way to turn it on if you can’t easily run either of those applications.

그래서 하나의 부팅 touch /mnt/raspi/boot/ssh에 대한 SSHD 수 있도록.

그런 다음 sshd를 영구적으로 활성화하려면 raspi-config을 실행하고 SSHd를 시작하도록 선택하십시오. 수동으로도이를 수행 할 수있는 방법이 있어야하지만 아직 이해하지 못했습니다.

+0

현재 펌웨어 (2017-09-07)에 다음과 같은 문제가있는 것 같습니다 : https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=168310 – Salami

0

많은 시도 끝에 모니터를 연결하고 결국 이미지가 손상되었음을 발견했습니다. 라스베리는 커널 공포로 멈췄습니다.