포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

예전..........아마도 2005~2007년도 사이

에 작업했던 sshd 관련 문서입니다.


참고하시기 바랍니다.


=========================

팁] aesop-2440 에서 ssh server 돌리기 

 

 

aesop-2440 3차 보드에서 ssh server(dropbear) 를 돌려보았습니다. 잘 됩니다.


minicom 없이 putty 같은거 써서 네트웍으로 여러번 접속이 가능합니다.


1. HOST 작업


우선 dropbear 패키지를 받습니다.


wget http://matt.ucc.asn.au/dropbear/releases/dropbear-0.49.tar.gz


압축을 풀고 다음과 같이 configure 명령을 내립니다.


tar -zxvf dropbear-0.49.tar.gz


./configure --host=arm-linux --disable-shadow


options.h 파일을 열고 DROPBEAR_RANDOM_DEV 항목에서

/dev/random 을 /dev/urandom 으로 고쳐줍니다.


make 를 실행시켜 컴파일 합니다.


실행파일이 네개 생기는데 dbclient 는 ssh client 프로그램이고 dropbear 가 ssh server 프로그램입니다. dropbearkey 는 dropbear 를 구동할때 필요한 키를 생성하는 프로그램이고 dropbearconvert 는 openssh-server 에서 생성한 키를 dropbear에 맞게 변환하는 프로그램입니다.


2. TARGET 작업


네개의 실행파일을 aesop-2440 타겟보드로 복사합니다.


두개의 키를 생성합니다.


./dropbearkey -t rsa -f dropbear_rsa_host_key

./dropbearkey -t dss -f dropbear_dss_host_key


다음 디렉토리를 만들고 복사합니다.


mkdir -p /etc/dropbear

cp dropbear_rsa_host_key /etc/dropbear

cp dropbear_dss_host_key /etc/dropbear


/etc/inittab 파일을 열고 /sbin/autologin 부분을 /bin/login 으로 고쳐줍니다.

init 를 재구동 시킵니다.


passwd root 명령을 내려서 암호를 설정합니다.


./dropbear -E 옵션을 주어 ssh server 를 구동합니다.


3. 접속 테스트


리눅스에서 ssh [email protected].??.??

혹은 Windows 에서 putty 를 써서 여러번 접속해 봅니다. 


 


"사람은 자기가 보고 싶은 현실만 볼 뿐이다." - Gaius Julius Caesar
엮인글 :
http://www.aesop.or.kr/index.php?mid=Board_Documents_Linux_Applications&document_srl=77112&act=trackback&key=af9

유형목

2012.06.30 10:27:31
*.131.98.177

제가 올렸던 문서로군요. 원본 링크는 다음과 같습니다.

http://www.aesop.or.kr/38178


dropbear 최신버전은 여기서 받을수 있습니다.

https://matt.ucc.asn.au/dropbear/dropbear.html

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
93 Yocto project 소개자료 [2] 고도리 2019-08-24 869
92 Yocto zynq howto - 예전자료 고도리 2019-08-24 279
91 apache-1.3.33 arm porting by tssuk [3] 고도리 2013-05-21 3336
90 i2c scan하는 코드입니다. 고도리 2012-07-27 5234
» dropbear ssh daemon 포팅하기 [1] 고도리 2012-06-30 5826
88 ffmpeg을 이용한 camera 영상 저장 file [1] 고도리 2012-05-01 5892
87 Linux application에서의 clock과 system timer설정 고도리 2011-08-15 7383
86 ffmpeg x86 compile & cross compile howto file 고도리 2011-08-05 7832
85 oss를 이용한 read, write, read/write program file [2] 고도리 2011-01-25 10531
84 GIT 사용법 (ProGIT) - 2.6. 태그(TAGS) 붙이기 [2] JhoonKim 2010-02-09 15136
83 GIT 사용법 (ProGIT) - 2.5. 원격 저장소의 사용 방법 [2] JhoonKim 2010-02-04 16060
82 GIT 사용법 (ProGIT) - 2.4. 작업의 취소 [1] JhoonKim 2010-02-03 15113
81 GIT 사용법 (ProGIT) - 2.3. 위탁 이력의 열람 file [1] JhoonKim 2010-02-03 13308
80 GIT 사용법 (ProGIT) - 2.2. GIT 저장소(Repository)에 기록 file [2] JhoonKim 2010-01-21 16033
79 GIT 사용법 (ProGIT) - 2.1. GIT 저장소(Repository)의 취득 JhoonKim 2010-01-20 18362
78 GIT 사용법 (ProGIT) - 1.5. 최초 GIT의 환경 설정 [3] JhoonKim 2010-01-13 16603
77 GIT 사용법 (ProGIT) - 1.4. GIT 설치 JhoonKim 2010-01-11 21208
76 GIT 사용법 (ProGIT) - 1.2. GIT 개발 역사 / 1.3. GIT 기본 ... file [3] JhoonKim 2010-01-10 14794
75 GIT 사용법 (ProGIT) - 1.1. 버전 관리 시스템의 개념 file [6] JhoonKim 2010-01-07 19510
74 I.MX Multimedia and Applications Framework 기술자료 ... file [2] 장석원 2009-10-26 11059

사용자 로그인