[gvfs] Use port 22222, not 2222 for test sshd



commit 228c7abbba8e4fe3a8d46bc4077b12232118a5ec
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Oct 17 10:51:46 2012 +0200

    Use port 22222, not 2222 for test sshd
    
    This is pure selfish motivation, i use port 2222 for something
    else on my machine.

 test/gvfs-test |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index 6e018be..76850c6 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -276,7 +276,7 @@ class Sftp(GvfsTestCase):
         shutil.copy(os.path.join(my_dir, 'files', 'ssh_host_rsa_key.pub'), self.workdir)
         self.sshd_config = os.path.join(self.workdir, 'sshd_config')
         with open(self.sshd_config, 'w') as f:
-            f.write('''Port 2222
+            f.write('''Port 22222
 HostKey %(workdir)s/ssh_host_rsa_key
 UsePrivilegeSeparation no
 AuthorizedKeysFile %(authorized_keys)s
@@ -313,7 +313,7 @@ Subsystem sftp %(sftp_server)s
         shutil.copy(os.path.expanduser('~/.ssh/id_rsa.pub'), self.authorized_keys)
 
         # mount it
-        uri = 'sftp://localhost:2222'
+        uri = 'sftp://localhost:22222'
         subprocess.check_call(['gvfs-mount', uri])
 
         self.do_mount_check(uri)
@@ -326,7 +326,7 @@ Subsystem sftp %(sftp_server)s
         shutil.copy(os.path.expanduser('~/.ssh/id_rsa.pub'), self.authorized_keys)
 
         # try to mount it; should fail as it's an unknown host
-        uri = 'sftp://%s:2222' % local_ip
+        uri = 'sftp://%s:22222' % local_ip
         (code, out, err) = self.program_code_out_err(['gvfs-mount', uri])
 
         self.assertNotEqual(code, 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]