~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/golang.org/x/crypto/ssh/test/test_unix_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
StrictModes no
42
42
RSAAuthentication yes
43
43
PubkeyAuthentication yes
44
 
AuthorizedKeysFile      {{.Dir}}/id_user.pub
 
44
AuthorizedKeysFile      {{.Dir}}/authorized_keys
45
45
TrustedUserCAKeys {{.Dir}}/id_ecdsa.pub
46
46
IgnoreRhosts yes
47
47
RhostsRSAAuthentication no
48
48
HostbasedAuthentication no
 
49
PubkeyAcceptedKeyTypes=*
49
50
`
50
51
 
51
52
var configTmpl = template.Must(template.New("").Parse(sshd_config))
249
250
                writeFile(filepath.Join(dir, filename+".pub"), ssh.MarshalAuthorizedKey(testPublicKeys[k]))
250
251
        }
251
252
 
 
253
        var authkeys bytes.Buffer
 
254
        for k, _ := range testdata.PEMBytes {
 
255
                authkeys.Write(ssh.MarshalAuthorizedKey(testPublicKeys[k]))
 
256
        }
 
257
        writeFile(filepath.Join(dir, "authorized_keys"), authkeys.Bytes())
 
258
 
252
259
        return &server{
253
260
                t:          t,
254
261
                configfile: f.Name(),