Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Add entry in authorized_keys from windows to linux host

$USER_AT_HOST="your-user-name-on-host@hostname"
$PUBKEYPATH="$HOME.sshid_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"
Comment

PREVIOUS NEXT
Code Example
Shell :: check if lfs compatible 
Shell :: bash: cd: too many arguments 
Shell :: harmony patch download 
Shell :: set default permission to user for git use 
Shell :: linux create user with expiration 
Shell :: fixing system permission issues in ubuntu 
Shell :: grep -c flag 
Shell :: install homebrew on godaddy 
Shell :: how to install multiple linux package in one line 
Shell :: linux find folder and exec du 
Shell :: windows 11 icons for tortoise git 
Shell :: unistall xpaint ubuntu 
Shell :: how to change apache port in xampp 
Shell :: Invariant Violation: requireNativeComponent: "RCTPdf" was not found in the UIManager. 
Shell :: Install Lumen CSV Reader package 
Shell :: Run Apache as Separate user and group 
Shell :: Dokument mit Datum speichern Powershell 
Shell :: Err:6 https://apt.kubernetes.io kubernetes-xenial Release 
Shell :: ubuntu 20 show dock only on hover 
Shell :: Cannot find device "tun0" 
Shell :: install NDIS driver fedora 
Shell :: git remote add ssh url 
Shell :: oh-my-posh.psm1 porque la ejecución de scripts está deshabilitada en este sistema 
Shell :: block ip address windows firewall using powershell from text file 
Shell :: windows key not raising window in ubuntu 
Shell :: node get git hash 
Shell :: fsl fslmath mask sphere 
Shell :: zsh move file 
Shell :: terraform select workspace 
Shell :: even digits leetcode 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =