~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Aaron Bentley
  • Date: 2008-10-15 18:59:07 UTC
  • mto: (3777.1.9 launchpad-login)
  • mto: This revision was merged to the branch mainline in revision 3778.
  • Revision ID: aaron@aaronbentley.com-20081015185907-lw5srt2ah0huccvt
bzr+ssh and sftp both use ssh scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
        user = self._user
380
380
        if user is None:
381
381
            auth = config.AuthenticationConfig()
382
 
            user = auth.get_user('sftp', self._host, self._port)
 
382
            user = auth.get_user('ssh', self._host, self._port)
383
383
        connection = vendor.connect_sftp(self._user, password,
384
384
                                         self._host, self._port)
385
385
        return connection, (user, password)