Commit 77aee333 authored by Björn's avatar Björn

adding

parent e65f5912
......@@ -40,3 +40,10 @@ gpg_key_id=
gpg_passphrase=
remove_older_than=s, m, h, D, W, M, Y (seconds, minutes, hours, days, weeks, months, years)
```
```bash_profile
Host 192.168.1.50
HostName 192.168.1.50
IdentityFile ~/.ssh/mcp
IdentitiesOnly yes
```
......@@ -111,7 +111,7 @@ class Storagebox(Config):
# authorize key
self._command("cat " + ssh_file + ".pub >> " + self._homeDir() + "/authorized_keys")
print('Create SSH-Key backup_' + self._namespace)
print('Create SSH-Key backup_' + self._namespace + ', ' + 'backup_' + self._namespace + '.pub')
else:
print(colored('SSH-Key already exists!', 'yellow'))
......@@ -199,6 +199,17 @@ class Storagebox(Config):
elif self._args.command == 'remove':
self._remove_ssh_key()
host = self._config.get('default', 'remote_host').split('@')[1]
print('')
print('Please ' + self._args.command + ' in ~/.config')
print('')
print('Host ' + host)
print(' HostName ' + host)
print(' IdentityFile ~/.ssh/backup_' + self._namespace)
print(' IdentitiesOnly yes')
print('')
self._upload()
self._clean()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment