ע���˺�

ֻ��һ�������ٿ�ʼ

����:
�׶��ƽ���̳»
�鿴: 12896|�ظ�: 0

�ɹ���ֲopenssh��arm linux������-金沙js1005线路

������������

rank: 9rank: 9rank: 9

����
������ 2013-8-27 11:55:47 | |
����
������õ�һщû��ssh�ŀ����壬���ڲ��ֵ�ӧ�ÿ�����˵�����ܵ�ӱ�죬����ʹ��arm ds-5����rseզ�̹������ʱ���ͻ���ִ�������;�����ν���openssh��ֲ������ϸ���ܡ�

����
1.����դ������£����� openssh��openssl �� zlib ��������
openssh
  • �������أ� (1.22 mb, ���ش���: 11016)
  • �������أ�
openssl
  • �������أ� (4.27 mb, ���ش���: 10676)
  • �ٷ����أ�
zlib
  • �������أ� (557.71 kb, ���ش���: 12095)
  • �ٷ����أ�

2.������ŀ¼�����û���ŀ¼�´�������ŀ¼��
$ mkdir /home/gary/work
$ cd /home/gary/work

�� work ŀ¼���洴����װŀ¼��
$ mkdir install$ mkdir install/zlib
$ mkdir install/openssl

3.��ѹ������
���������ص�3����װ�����ƶ� work ŀ¼�£�����ѹ����ѹ���
$ tar zxvf zlib-1.2.8.tar.gz
$ tar zxvf openssl-1.0.1h.tar.gz$ tar zxvf openssh-6.6p1.tar.gz

a��������� zlib
$ cd zlib-1.2.8
$ ./configure --prefix=/home/gary/work/install/zlib
$ vi makefile

�� makefile �еľ�����빤�߸ijɵ�ǰ������ʹ�õľ�����빤�ߣ�
cc=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
ar=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-ar
cpp=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
ldshared=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
$ make
$ make install

b���������openssl
$ cd ../openssl-1.0.1h
$ ./configure --prefix=/home/gary/work/install/openssl  os/compiler:/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
$ make
$ make install

c���������openssh
$ cd  ../openssh-6.6p1
$ ./configure --host=arm-none-linux-gnueabi --with-libs --with-zlib=/home/gary/work/install/zlib --with-ssl-dir=/home/gary/work/install/openssl --disable-etc-default-login cc=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc ar=/usr/local/arm-2010q1/bin/arm-none-linux-gnueabi-ar
$ make

ע�⣺openssh����ҫmake install

4.����ŀ���
a��ȷ��ŀ�����������ŀ¼����û�у����½���
/usr/local/bin
/usr/local/etc
/usr/libexec
/var/run
/var/empty


b����pc���ͻ������ļ�������ŀ���linuxϵͳ��
pc�� /home/gary/work/openssh-6.6p1/ ŀ¼�µ�
  • scp  sftp  ssh sshd  ssh-add  ssh-agent  ssh-keygen  ssh-keyscan ��8���ļ�������ŀ��� /usr/local/bin
  • moduli ssh_config sshd_config ��3���ļ�������ŀ��� /usr/local/etc
  • sftp-server  ssh-keysign ��2���ļ�������ŀ��� /usr/libexec

c������key�ļ�
��pc�� /work/ssh/source/openssh-6.6p1/ ŀ¼�����у�
$ ssh-keygen -t rsa -f ssh_host_rsa_key -n ""
$ ssh-keygen -t dsa -f ssh_host_dsa_key -n ""
$ ssh-keygen -t ecdsa -f ssh_host_ecdsa_key -n ""
$ ssh-keygen -t dsa -f ssh_host_ed25519_key -n ""

�����ɵ� ssh_host_*_key ��4���ļ�copy��ŀ���� /usr/local/etc/ ŀ¼�¡����� ssh_host_ed25519_key ��ssh�ڶ���э���õ���key���ŵ�������֮��ҫ�޸�ȩ��ϊ 600���������ʾ���´���
permissions 0644 for '/usr/local/etc/ssh_host_ed25519_key' are too open.
it is required that your private key files are not accessible by others.
this private key will be ignored.
bad permissions: ignore key: /usr/local/etc/ssh_host_ed25519_key
could not load host key: /usr/local/etc/ssh_host_ed25519_key

�޸�ȩ�޵�����ϊ��
# chmod 600 /usr/local/etc/ssh_host_ed25519_key

d���޸�ŀ���passwd�ļ���
�� /etc/passwd �ļ�������������һ�у�
sshd:x:74:74:privilege-separated ssh:/var/empty/sshd:/sbin/nologin


5.����
���������� root �û���û�����룬������������ȼ���������������޸ģ��������豸�޷�����
# passwd root

��ŀ��������у�
# /usr/local/bin/sshd

������ ps ����鿴sshd�ƿ��ڹ���
������еĺ���������ʾȱ�ٶ�̬���ӿ⣬������������������ӧ�ļ���������ŀ���/lib/ŀ¼���棬ע�ⴴ�������ӣ�
ok����������ļ����գɹ���

�����ϣ�
$ ssh root@192.168.1.250���������ip��

ȼ�����뿪�����root����;Ϳ����ˣ�����ͼ���ӳɹ���

ssh

ssh



�������
ssh ��ֲ�� arm linux �������θ����ܽ���


, , , , , , , , ,

�������

����ҫ��¼��ſ��ի��� ��¼ | ע���˺�

|||    "));

gmt 8, 2020-7-5 02:05 , processed in 0.123133 second(s), 30 queries .

powered by x3.2

© 2001-2013

网站地图