Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/platform/init/openssh-server.conf

Issue 912003: Make ssh compatible with dev mode and remove testing ssh items that don't work (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/scripts/mod_for_test_scripts/601autoStartSshd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 #
5 # Starts an sshd daemon for developer builds.
4 6
5 start on started connman 7 start on stopped dump-boot-stats
gauravsh 2010/03/12 21:59:45 Any specific reason for starting this late? (I am
sosa 2010/03/12 22:01:32 Ssh server is a development mode specific upstart
6 respawn 8 respawn
7 expect fork 9 expect fork
8 exec /usr/sbin/sshd
9 10
10 11 # TODO(sosa@chromium.org) - Remove old style once switched to new dev_mode
12 if [ -f /root/.dev_mode ] ; then
13 exec /usr/local/sbin/sshd
14 else
15 exec /usr/sbin/sshd
16 fi
11 17
12 pre-start script 18 pre-start script
13 19
14 mkdir -p /mnt/stateful_partition/etc/ssh 20 mkdir -p /mnt/stateful_partition/etc/ssh
15 21
16 if [ ! -f /mnt/stateful_partition/etc/ssh/ssh_host_rsa_key ] ; then 22 if [ ! -f /mnt/stateful_partition/etc/ssh/ssh_host_rsa_key ] ; then
17 echo Generating v2 RSA key 23 echo Generating v2 RSA key
18 ssh-keygen -q -f /mnt/stateful_partition/etc/ssh/ssh_host_rsa_key -N '' -t rs a 24 ssh-keygen -q -f /mnt/stateful_partition/etc/ssh/ssh_host_rsa_key -N '' -t rs a
19 fi 25 fi
20 26
21 27
22 if [ ! -f /mnt/stateful_partition/etc/ssh/ssh_host_dsa_key ] ; then 28 if [ ! -f /mnt/stateful_partition/etc/ssh/ssh_host_dsa_key ] ; then
23 echo Generating v2 DSA key 29 echo Generating v2 DSA key
24 ssh-keygen -q -f /mnt/stateful_partition/etc/ssh/ssh_host_dsa_key -N '' -t ds a 30 ssh-keygen -q -f /mnt/stateful_partition/etc/ssh/ssh_host_dsa_key -N '' -t ds a
25 fi 31 fi
26 32
27 end script 33 end script
28 34
29 35
OLDNEW
« no previous file with comments | « no previous file | src/scripts/mod_for_test_scripts/601autoStartSshd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698