바인딩 /dev /run /proc를 마운트하고 재부팅한 후 SSH에서 잠겼습니다.

바인딩 /dev /run /proc를 마운트하고 재부팅한 후 SSH에서 잠겼습니다.

Linux From Scratch(LFS)에 설명된 대로 커널의 가상 파일 시스템을 자동으로 마운트하기 위해 /etc/rc.local 파일에 다음 명령을 추가했습니다.
다시 시작하고...

부분
6.2.2 /dev 마운트 및 채우기
6.2.3. 가상 커널 파일 시스템 마운트

mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run

if [ -h $LFS/dev/shm ]; then
  mkdir -pv $LFS/$(readlink $LFS/dev/shm
fi

이제 SSH Bakk를 시도하면 다음과 같은 결과가 나옵니다.

ssh -vvv -i lfs.pem [email protected]   

OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016   
debug1: Reading configuration data /home/heitor/.ssh/config   
debug1: Reading configuration data /etc/ssh/ssh_config   
debug1: /etc/ssh/ssh_config line 19: Applying options for *   
debug2: resolving "52.22.192.60" port 22   
debug2: ssh_connect_direct: needpriv 0   
debug1: Connecting to 52.22.192.60 [52.22.192.60] port 22.   
debug1: Connection established.   
debug1: key_load_public: No such file or directory   
debug1: identity file dev/heitor/linux-from-scratch/lfs-ssh-rescue.pem type -1   
debug1: key_load_public: No such file or directory   
debug1: identity file dev/heitor/linux-from-scratch/lfs-ssh-rescue.pem-cert type -1   
debug1: Enabling compatibility mode for protocol 2.0   
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1   
ssh_exchange_identification: read: Connection reset by peer   

도움을 주시면 감사하겠습니다.

답변1

다른 인스턴스에 볼륨을 마운트하는 문제를 해결하고 손상된 명령을 제거한 후 Linux From Scratch 인스턴스에 다시 마운트했습니다. 이제 정상적으로 SSH로 돌아갈 수 있습니다 =)

모두의 도움에 감사드립니다!

관련 정보