Horje
Add entry in authorized_keys from windows to linux host Code Example
Add entry in authorized_keys from windows to linux host
$USER_AT_HOST="your-user-name-on-host@hostname"
$PUBKEYPATH="$HOME\.ssh\id_rsa.pub"

$pubKey=(Get-Content "$PUBKEYPATH" | Out-String); ssh "$USER_AT_HOST" "mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo '${pubKey}' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"




Shell

Related
bash echo a checkMark based on condition Code Example bash echo a checkMark based on condition Code Example
how to access folder using command on git bash terminal Code Example how to access folder using command on git bash terminal Code Example
command to fix frozen shell Code Example command to fix frozen shell Code Example
upgrade R kernel Code Example upgrade R kernel Code Example
what is a repository Code Example what is a repository Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11