vaheeD khoshnouD

linux, mikrotik, macosx

How First run SSH-Server

Written by vaheeD on January 22, 2013
5.00 avg. rating (93% score) - 1 vote

Starting services

BackTrack has various services such as Apache, SSH, MySQL, VNC, etc. They are all disabled by default. To start a service such as SSH, you can use the service init scripts. For example, to start the SSH service:

[email protected]:~# sshd-generate  # Specific to the SSH service - needed to generate SSH keys
[email protected]:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
[email protected]:~# /etc/init.d/ssh stop 
Stopping OpenBSD Secure Shell server: sshd.
[email protected]:~#

When using a ssh server for the first time on Backtrack you will need to generate keys:

[email protected]:~# sshd-generate

To enable a service at boot time, you can use the update-rc.d command, for example, having SSH start at boot time:

[email protected]:~# update-rc.d -f ssh defaults
 Adding system startup for /etc/init.d/ssh ...
  /etc/rc0.d/K20ssh -> ../init.d/ssh
  /etc/rc1.d/K20ssh -> ../init.d/ssh
  /etc/rc6.d/K20ssh -> ../init.d/ssh
  /etc/rc2.d/S20ssh -> ../init.d/ssh
  /etc/rc3.d/S20ssh -> ../init.d/ssh
  /etc/rc4.d/S20ssh -> ../init.d/ssh
  /etc/rc5.d/S20ssh -> ../init.d/ssh
[email protected]:~#


5.00 avg. rating (93% score) - 1 vote

Posted Under: Linux

About vaheeD

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected by WP Anti Spam