jetbrains / clion-wsl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
After the latest commit it only works from localhost. Does not work when I specify the local IP instead of putting localhost.
I've installed Ubuntu with WSL, configured the ssh and Toolchains in CLion.
I attempt to run Valgrind and get the following error:
Error running 'try1': File not found: /cygdrive/c/Users/noam/Downloads/204634679-314475062/try1/cmake-build-debug/try1.exe
The following line in the ubuntu setup script will make a new file under ~
instead of updating the regular .bashrc
if the ~/.bashrc
is a symlink. This is quite common if a user is keeping their dotfiles under version control in a separate directory.
sed -i '/^sudo service ssh --full-restart/ d' ~/.bashrc
This will most likely go unnoticed by the users of the script as the new regular file ~/.bashrc
also has the symlinked regular file contents.
An alternative for avoiding this break is to take the absolute path in a variable and use it instead of ~/.bashrc
.
export _BASH_PATH="$(readlink -f ~/.bashrc)"
sed -i '/^sudo service ssh --full-restart/ d' "${_BASH_PATH}"
This doesn't affect the subsequent cat
command but it would be consistent to use ${_BASH_PATH}
there as well.
As the title says UsePrivilegeSeparation
option is deprecated, so the script should be updated accordingly.
Thanks.
Debian is also supported on WSL through the Windows Store.
ListenAddress 127.0.0.1
Port 2222
UsePrivilegeSeparation no
PasswordAuthentication yes
* Stopping OpenBSD Secure Shell server sshd [ OK ]
* Starting OpenBSD Secure Shell server sshd /etc/ssh/sshd_config line 89: ports must be specified before ListenAddress.
[fail]
%sudo ALL=(ALL) NOPASSWD: /usr/sbin/service ssh --full-restart
SSH server parameters (/etc/ssh/sshd_config):
ListenAddress 127.0.0.1
Port 2222
UsePrivilegeSeparation no
PasswordAuthentication yes
Sorry if this is a stupid question, but what is the default password after running the script?
When opening a bash for Kali you will get the following message in the SSH server start message
/etc/ssh/sshd_config line x: Deprecated option UsePrivilegeSeparation
From https://www.openssh.com/txt/release-7.5:
* This release deprecates the sshd_config UsePrivilegeSeparation
option, thereby making privilege separation mandatory. Privilege
separation has been on by default for almost 15 years and
sandboxing has been on by default for almost the last five.
I just tried the configurations here and I get:
ssh: connect to host localhost port 2222: Connection refused
I am using the latest version of Windows 10 and the Ubuntu 18.04.3 LTS on the WSL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.