Он содержит архитектурный -специальный код .
All the architecture specific code is in this directory and in the include/asm- directories. Each architecture has its own directory underneath this directory. For example, the code for a PowerPC based computer would be found under arch/ppc. You will find low-level memory management, interrupt handling, early initialization, assembly routines, and much more in these directories.
Если вы посмотрите , вы увидите разные каталоги для таких архитектур, как x86, ARM и т. д....
Вы можете настроить соединение, проходящее через шлюз, выполнив начальное ssh-соединение с конечной машиной и указав шлюз как jumphost с -J
. Добавление -N -M
оставляет это соединение открытым, чтобы в будущем Команды ssh для конечной машины мультиплексируются по этому первому соединению.
Поместить в начало вашего ~/.ssh/config
файла:
ControlPath ~/.ssh/master-%r@%h:%p
, затем соедините один раз с:
$ ssh -J me@gatewayserver -N -M me@workcomputer
Он должен запросить у вас пароль к шлюзу, а затем пароль к рабочему компьютеру. После подключения вы можете запускать команды без каких-либо паролей, например
$ ssh me@workcomputer hostname
$ rsync -nv myfile me@workcomputer:/tmp
Вы также можете добавить -v
к первому ssh, чтобы видеть, что происходит. Подробный вывод -v
покажет сокет, созданный в ~/.ssh
:
debug1: setting up multiplex master socket
debug1: channel 0: new [/home/me/.ssh/master-me@workcomputer:22]
Теперь, когда вам понадобится еще один ssh для того же адресата, он будет использовать существующий:
$ ssh me@workcomputer pwd
дает подробный вывод:
debug1: multiplexing control connection
debug1: channel 1: new [mux-control]
debug1: channel 2: new [client-session]
debug1: Sending command: pwd
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 1: free: mux-control, nchannels 2
То же самое относится и к вашим командам rsync:
$ rsync -nv myfile me@workcomputer:/tmp
sent 43 bytes received 19 bytes 124.00 bytes/sec
total size is 173 speedup is 2.79 (DRY RUN)
выход:
debug1: multiplexing control connection
...
debug1: Sending command: rsync --server -vne.LsfxC. /tmp