# README
dssh
dssh:=(tssh from trzsz)+(CA key with embed-encrypt)+(sshd from gliderlabs)+(access over NAT using jumpphost ssh-j.com)+(ser2net with putty or direct connect to serial console)
Что было доделанно в tssh:
1. Вывод кастомных сообщения - DebugF и WarningF из login.go.
2. Для красоты - type StringSet из login.go, type afterDo []func() для afterLoginFuncs, onExitFuncs, restoreStdFuncs из main.go.
3. Глобальный конфиг для Windows - initUserConfig из config.go, resolveEtcDir, expandEnv в getHostKeyCallback из login.go, config.go.
4. Авторизация хостов по сертификатам - caKeysCallback, caKeys в getHostKeyCallback из cert.go.
5. Авторизация клиентов по сертификатам - addCertSigner, args.Config.GetAllSigner, args.Config.GetAllCASigner, idKeyAlgorithms в getPublicKeysAuthMethod из login.go.
6. Чтение HostKeyAlgorithms - setupHostKeyAlgorithmsConfig из login.go, algo.go. Смотри `ssh -Q HostKeyAlgorithms`.
7. Перенос агента авторизации - getForwardAgentAddr, getAgentClient в sshAgentForward из login.go.
8. Чтение ExitOnForwardFailure - dynamicForward, localForward, remoteForward, sshForward из forward.go
9. Запуск в Windows7 без Cygwin и MSYS2 через `-T` - setupVirtualTerminal, sttyExecutable из term_windows.go.
10. Чтение IdentitiesOnly в getPublicKeysAuthMethod из login.go.
11. Уникальный SecretEncodeKey и подсказка `encPassword bar` при указании `-o Password=foo` в getPasswordAuthMethod из login.go.
12. Возможность прервать dynamicForward, localForward, remoteForward по Ctr-C используя restoreStdFuncs.Cleanup перед ss.client.Wait в sshStart из main.go.
13. Возможность прервать сессию по `<Enter><EscapeChar>.` newTildaReader в wrapStdIO из trzsz.go и newServerWriteCloser в sshLogin из login.go.
14. Для системного прокси windows нужен socks4 поэтому github.com/smeinecke/go-socks5 вместо github.com/armon/go-socks5 в forward.go.
# Functions
Конфиг для putty на linux может и на darwin.
Баннер без префикса SSH2.
Wrap source of code and message to error.
Вывод ошибки и завершение приложения.
Вывод ошибки и завершение приложения в случаи выполнения всех условий case.
Вывод ошибки и завершение приложения в случаи выполнения любого условия case.
Читаю name и добавляю замки из in в authorized.
No description provided by the author
Получить один замок.
No description provided by the author
No description provided by the author
Время модификации.
No description provided by the author
tssh.
Вывод ошибки если она есть.
Вывод ошибки если она есть.
Вывод Ok если нет ошибки.
No description provided by the author
Colorable log.
Меняю заголовок окна у клиента.
net.SplitHostPort со значениями по умолчанию.
No description provided by the author
No description provided by the author
Пишем файл name если его содержимое отличается от data.
# Constants
No description provided by the author
No description provided by the author
^C END OF TEXT.
^Z SUBSTITUTE.
No description provided by the author
No description provided by the author
No description provided by the author
^] INFORMATION SEPARATOR THREE (group separator).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
signed https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
reconnect TO.
watch TO.
# Variables
Ключ ЦС.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go:embed VERSION.
No description provided by the author