vaheeD khoshnouD

linux, mikrotik, macosx

How First run SSH-Server

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

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:

root@example:~# sshd-generate  # Specific to the SSH service - needed to generate SSH keys
root@example:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
root@example:~# /etc/init.d/ssh stop 
Stopping OpenBSD Secure Shell server: sshd.
root@example:~#

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

root@example:~# 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:

root@example:~# 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
root@example:~#

 

How First run SSH-Server
1 vote, 5.00 avg. rating (93% score)

Posted Under: Linux

About vaheeD

Leave a Reply

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

Protected by WP Anti Spam