START /B pageant --openssh-config %USERPROFILE%\.ssh\pageant.conf %USERPROFILE%\.ssh\MeinSshKey.priv.ppk rem hier mit Beispiel rclone Aufruf für Laufwerks-montieren timeout /t 20 START /B rclone mount --vfs-cache-mode=full --buffer-size=16M --vfs-read-ahead=64M mshsupp1:/home/u/jp H:\
winget install -e --id Rclone.Rclone
[mshsupp1] type = sftp host = mshsupp1 user = jp key_use_agent = true shell_type = unix md5sum_command = md5sum sha1sum_command = sha1sum vfs-cache-mode = full buffer-size = 16M vfs-read-ahead = 64M
windows_destination="/mnt/c/Users/jp/wsl2-ssh-pageant.exe" linux_destination="$HOME/.ssh/wsl2-ssh-pageant.exe" # wurde schon oben bei "Setup in Windows" gemacht # wget -O "$windows_destination" "https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest/download/wsl2-ssh-pageant.exe" # Set the executable bit. chmod +x "$windows_destination" # Symlink to linux for ease of use later ln -s $windows_destination $linux_destination
echo "Dies ist .bashrc"
cd ~
export BROWSER='/mnt/c/Program Files/Mozilla Firefox/firefox.exe'
update_clock () {
echo '[ROOT] Updating clock'
sudo ntpdate time.windows.com
}
update_clock
############
# siehe https://github.com/BlackReloaded/wsl2-ssh-pageant
############
export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock"
if ! ss -a | grep -q "$SSH_AUTH_SOCK"; then
rm -f "$SSH_AUTH_SOCK"
wsl2_ssh_pageant_bin="$HOME/.ssh/wsl2-ssh-pageant.exe"
if test -x "$wsl2_ssh_pageant_bin"; then
(setsid nohup socat UNIX-LISTEN:"$SSH_AUTH_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin" >/dev/null 2>&1 &)
else
echo >&2 "WARNING: $wsl2_ssh_pageant_bin is not executable."
fi
unset wsl2_ssh_pageant_bin
fi
export PATH="$HOME/.local/bin:$PATH"
alias py=~/aws-python/bin/python
alias ll="ls -l"
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
Putty-Config-Agent-Forwarding.jpg | manage | 56 K | 17 Apr 2026 - 13:20 | UnknownUser | Allow Agent Forwarding |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.