February 2010 Archives

iPhone ssh problem

| No Comments
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.



| No Comments




Recent Comments

  • rao.chenlin: const-c.inc和const-xs.inc这两个的写法能不能详细说说啊。perlxs的中文资料不好找~~多谢多谢 read more
  • rao.chenlin: 我是openSUSE12.1的i686,QQ群获取的群友昵称(包括自己)是乱码~其他一切OK read more
  • cnangel: 已经证明在fedora、ubuntu的i686以及x86_64平台都可以使用。 read more
  • fdcwqmst: 总算找到一点靠谱的博文了 read more
  • Cnangel: 所以说嘛,无奈~ read more
  • 贝贝: 提示你了他们怎么赚钱阿?就是要让你在不知不觉中就花了好多钱 read more
  • Cnangel: please say chinese read more
  • david: hello , i need you help , but i dont read more
  • Cnangel: 问题出错在: /root/phpdev/php-5.3.3/ext/php5cpp/php5cpp.cpp:65: error: invalid conversion from ‘const zend_function_entry*’ to ‘_zend_function_entry*’ read more
  • craboy1: 我make出现了下边的错误: g++ -I. -I/root/phpdev/php-5.3.3/ext/php5cpp -DPHP_ATOM_INC -I/root/phpdev/php-5.3.3/ext/php5cpp/include -I/root/phpdev/php-5.3.3/ext/php5cpp/main -I/root/phpdev/php-5.3.3/ext/php5cpp -I/usr/include/php5 -I/usr/include/php5/main read more


Powered by Movable Type 5.2.2

December 2012

Sun Mon Tue Wed Thu Fri Sat
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          
Creative Commons License
This blog is licensed under a Creative Commons License.

About this Archive

This page is an archive of entries from February 2010 listed from newest to oldest.

January 2010 is the previous archive.

March 2010 is the next archive.

Find recent content on the main index or look in the archives to find all content.