Unable to start sshch, if folder ~/.config doesn't exist #10

Closed
opened 2018-11-28 10:26:47 +00:00 by zlax · 2 comments
Owner

Author: @ObSec

ba9fa303ba/sshch/sshch (L791)

Start without ~/.config folder returns
Traceback (most recent call last):
File "/usr/local/bin/sshch", line 791, in
open(conf_file, 'w')
IOError: [Errno 2] No such file or directory: '/home/user/.config/sshch.conf'

Might help:
conf_dir = os.path.expanduser("~") + '/.config'
if not os.path.exists(conf_dir):
os.makedirs(conf_dir)

Author: @ObSec https://github.com/zlaxy/sshch/blob/ba9fa303ba6bcd1ba58973bd91a6bd6ba8e7ed12/sshch/sshch#L791 Start without ~/.config folder returns Traceback (most recent call last): File "/usr/local/bin/sshch", line 791, in <module> open(conf_file, 'w') IOError: [Errno 2] No such file or directory: '/home/user/.config/sshch.conf' Might help: conf_dir = os.path.expanduser("~") + '/.config' if not os.path.exists(conf_dir): os.makedirs(conf_dir)
Author
Owner

Author: @zlaxy

@ObSec , thanks, fixed in main repository: 0fd4ff9b74 (f48a8759231e000660b4ebcd489bb369bcf57d4f)
Please, note: with this branch you need to update your passwords in sshch.conf (set passwords for aliases again)
git clone https://gitlab.com/zlax/sshch
I plan to update this Microsoft GitHub repository only with new releases. Everything new is on gitlab. Please, close this issue after testing fix.

Author: @zlaxy @ObSec , thanks, fixed in main repository: https://gitlab.com/zlax/sshch/commit/0fd4ff9b74527ad0c3155f521c89fc9ad87c2033#f48a8759231e000660b4ebcd489bb369bcf57d4f Please, note: with this branch you need to update your passwords in sshch.conf (set passwords for aliases again) `git clone https://gitlab.com/zlax/sshch` I plan to update this Microsoft GitHub repository only with new releases. Everything new is on gitlab. Please, close this issue after testing fix.
Author
Owner

Author: @ObSec

did a short test, works well. thank you

Author: @ObSec did a short test, works well. thank you
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: zlax/sshch#10
No description provided.