Skip to content

Commit

Permalink
SSH Bağlantısının başlamamasına sebep olan hata giderildi
Browse files Browse the repository at this point in the history
  • Loading branch information
zekiahmetbayar committed Sep 7, 2020
1 parent 1f617f9 commit f5a4737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/usr/share/valf/bin/valf.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def on_click_connect(self,widget): # Sağ tık menüsündeki Connect Host seçen
out, err = sshProcess.communicate(timeout=0.5)

key_word = b'Linux'

if key_word in out:
self.terminal = Vte.Terminal()
self.terminal.spawn_sync(
Expand Down Expand Up @@ -194,7 +195,8 @@ def on_click_connect(self,widget): # Sağ tık menüsündeki Connect Host seçen
time.sleep(0.5)

else:
print('Hata ! ')
self.enter_password()
self.connect_button.connect('clicked',self.send_password)

except:
sshProcess.send_signal(signal.SIGINT)
Expand Down

0 comments on commit f5a4737

Please sign in to comment.