解决backtrack5无法ssh登录问题
- Written by alamise
- font size decrease font size increase font size
- Print Email
backtrack5安装完毕后,使用putty远程登录时显示network error:Connection refused
解决方法:
登录系统(系统默认用户名密码是root/toor,startx可以进入图形界面)
在命令终端输入命令,
#sshd-generate (系统可能会询问是否覆盖,全部选Y)。
或者
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
密码置空
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
密码置空
然后
:~# /etc/init.d/ssh restart
问题解决。
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0010 | 412632 | {main}( ) | .../index.php:0 |
2 | 0.1078 | 4262840 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1078 | 4262840 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3352 | 11372792 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3359 | 11394680 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3371 | 11450008 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3374 | 11477408 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3494 | 11877040 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3494 | 11877040 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3637 | 12527744 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3637 | 12527744 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3706 | 12898784 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3719 | 12919152 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4829 | 15928496 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4829 | 15928496 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4849 | 16101432 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0010 | 412632 | {main}( ) | .../index.php:0 |
2 | 0.1078 | 4262840 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1078 | 4262840 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3352 | 11372792 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3359 | 11394680 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3371 | 11450008 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3374 | 11477408 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3494 | 11877040 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3494 | 11877040 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3637 | 12527744 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3637 | 12527744 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3706 | 12898784 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3719 | 12919152 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4829 | 15928496 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4829 | 15928496 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4849 | 16101432 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |