February 2010的归档

iPhone ssh problem

| 暂无评论
After installing the BSD Subsystem and OpenSSH packages from the Installer.app, I tried to remotely login to my iPhone using ssh, but all I got was this error:

me@mbp $> ssh iphone
ssh_exchange_identification: Connection closed by remote host

After some googling I still couldn't find any useable solution to my problem, so I started to investigate the problem my self.

Running the Term-vt100.app on the iPhone and typing /usr/sbin/sshd -t reviled that the host keys was not generated, so the fix was to generate them by hand:

me@iphone $> ssh-keygen -t rsa1 -b 1024 -f /etc/ssh_host_key -N ''
me@iphone $> /usr/bin/ssh-keygen -d -f /etc/ssh_host_dsa_key -N ''
me@iphone $> /usr/bin/ssh-keygen -t rsa -f /etc/ssh_host_rsa_key -N ''

After that it all work like a charm.

from:http://www.my-place.biz/page0/files/1dc330112cc73308affb6d1d52b4b0a1-7.html

这段日子真的很忙

| 暂无评论

工作项目很紧,学习作业很多,还有英语口语考试,整个人快崩溃掉。

 

关于此归档

这里是在February 2010发表的所有日记,它们按照时间从新到老排序。

上一篇日记January 2010

下一篇日记March 2010

主索引归档页可以看到最新的日记和所有日记。

May 2010

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Powered by Movable Type 5.02