Skip to content

Commit e6c7b14

Browse files
Remove duplicated code
1 parent 76d0b79 commit e6c7b14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

providentia/download.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(self, **kwargs):
106106
if self.machine == "local":
107107

108108
# initialise remote hostname
109-
self.remote_hostname = "transfer2.bsc.es"
109+
self.remote_hostname = "transfer1.bsc.es"
110110

111111
# initialise ssh
112112
self.ssh = None
@@ -259,9 +259,6 @@ def connect(self):
259259

260260
# get public remote machine public key and add it to ssh object
261261
_, output = subprocess.getstatusoutput(f"ssh-keyscan -t ed25519 {self.remote_hostname}")
262-
263-
ed25519_key = output.split()[-1].encode()
264-
key = paramiko.Ed25519Key(data=decodebytes(ed25519_key))
265262

266263
# encode the output public key if possible
267264
try:

0 commit comments

Comments
 (0)