我试图使用我的.pem文件登录我的盒子但是我收到了错误
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for './arete-server.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: ./arete-server.pem
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
chmod 400不适用于Windows上的Ubuntu上的Bash,我可以给它的最佳权限是-r-xr-xr-x
知道如何获得权限,我可以使用这个pem文件吗?
在Windows上使用Bash时.vimrc在哪里?我试图添加设置以使Windows上的Bash适合vim使用,并允许使用自定义设置执行git diff / merge等,即忽略空格。
我目前正在浏览这个关于SDL的网站教程:
(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/index.php),
在Windows 10上使用Bash作为平台.我已经安装使用SDL包
apt-get install libsdl2-dev
,并能编写课程的源代码(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/01_hello_SDL.zip)
使用g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL.
但是,当我运行可执行文件时./01_hello_SDL,程序打印出来SDL could not initialize! SDL_Error: Failed to connect to the Mir Server.有谁知道解决这个问题?
我试图在WSL下使用ssh-agent,但在脚本运行后擦除了SSH参数
来自.bashrc(缩减版)
eval $(ssh-agent)
ssh-add
ssh-add -l
echo "SSH_AGENT_PID is" $SSH_AGENT_PID
echo "SSH_AUTH_SOCK is" $SSH_AUTH_SOCK
Run Code Online (Sandbox Code Playgroud)
然后提示密码短语显示指纹和相关变量
在提示(或单独的脚本)运行后直接
ssh-add -l
echo "SSH_AGENT_PID is" $SSH_AGENT_PID
echo "SSH_AUTH_SOCK is" $SSH_AUTH_SOCK
Run Code Online (Sandbox Code Playgroud)
给
Could not open a connection to your authentication agent.
SSH_AGENT_PID is
SSH_AUTH_SOCK is
Run Code Online (Sandbox Code Playgroud)
(为了便于阅读而整理)
代理仍在运行时使用原始pid(在顶部检查)也尝试eval $(ssh-agent ) > /dev/null并eval $(ssh-agent -s)组合使用
为什么要擦掉这些?ssh-agent工作正常,直到windows更新1709"fall creators update"
信息:linux版本4.4.0-43-Microsoft(Microsoft@Microsoft.com)(gcc版本5.4.0(GCC))#1-Microsoft Wed Dec 31 14:42:53 PST 2014
从这里重新发布:https://superuser.com/questions/1278539/ssh-agent-reset-in-windows-subsystem-for-linux-wsl
我已经安装了awscli,并已将aws密钥添加到配置和凭证文件中。现在,我可以从Windows通过文件资源管理器访问它们,但无法通过WSL bash访问它们。它说,当我尝试CD到rootfs中的.aws文件夹时,权限被拒绝。如何从bash访问它们?
windows bash amazon-web-services aws-cli windows-subsystem-for-linux
我试图sbt从这里在 Linux的Windows子系统上安装。以下是我的bash终端输出:
username:repo$ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
deb https://dl.bintray.com/sbt/debian /
username:repo$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
Executing: /tmp/apt-key-gpghome.NbSR0JqpKB/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.NbSR0JqpKB/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
Run Code Online (Sandbox Code Playgroud)
我已经检查过dirmngr了。sudo apt-get update提供以下输出:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 https://dl.bintray.com/sbt/debian InRelease
Get:5 https://dl.bintray.com/sbt/debian Release [815 B]
Get:6 https://dl.bintray.com/sbt/debian Release.gpg [821 B]
Hit:7 http://security.ubuntu.com/ubuntu …Run Code Online (Sandbox Code Playgroud) 我与Windows Linux子系统共享Windows 10文件系统。我将编码项目保留dev在用户目录下的文件夹中,并/mnt/c/Users/Conan/dev在WSL中共享。Intellij从Windows文件系统运行项目,但是我使用了许多命令行工具来java从WSL的共享中运行内容(例如)。
当我启动Intellij时,它说:
文件系统区分大小写不匹配
项目似乎位于区分大小写的文件系统上。
这与IDE设置不匹配(由属性“ idea.case.sensitive.fs”控制)
它是否正确?我的Windows文件系统不区分大小写,但是文件是从WSL中的bash创建的。我应该使用哪个设置?
我已在Windows 10 Pro上安装了WSL。我需要从Windows命令行执行bash命令,如下所示:
bash -c ll
Run Code Online (Sandbox Code Playgroud)
预期:ll命令行控制台中的命令输出
在实践中: /bin/bash: ll: command not found
但是它对于某些命令如ls或起作用apt。
请参见 :
可能是什么问题呢?
我需要/mnt/c/Users/username从 WSL 中获取 Windows 用户主目录的路径,它是否存储在某处?
如果没有,是否username存储在某处?我只是假设这/mnt/c/Users部分没有改变。
谢谢!
我已经在我的 win 10 64 位 1903 中安装了 ubuntu 18.04(WSL)。
对于命令git clone https://github.com/facebookresearch/fastText.git,
它在git bash(git for windows) 和ubuntu 18.04shell 中运行良好,但在bash(C:\Windows\System32\bash.exe) 中运行良好,错误消息是
$ git clone https://github.com/facebookresearch/fastText.git
Cloning into 'fastText'...
fatal: unable to access 'https://github.com/facebookresearch/fastText.git/': Could not resolve host: github.com
Run Code Online (Sandbox Code Playgroud)
.gitconfig我的电脑中只有两个文件,一个git bash用于ubuntu 18.04外壳,另一个用于外壳。我认为ubuntu 18.04shellbash在某种程度上可能等于但bash肯定有问题。
windows-subsystem-for-linux ×10
bash ×5
git ×2
windows ×2
aws-cli ×1
c++ ×1
filesystems ×1
sbt ×1
scala ×1
sdl ×1
sdl-2 ×1
ssh-agent ×1
vim ×1
windows-10 ×1