- Windows 10 has 2 new services, SSH Server Proxy and SSH Server Broker which will already be bound to port 22
- Do not allow public connection on this rule, WSL is not proven safe
Add as cmd startup with bash.exe --login
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install openssh-server libxml2 libxml2-dev libxslt1-dev libmysqlclient-dev nodejs libqt4-dev libqtwebkit-dev -y
Ensure the following values are set in the configuration file.
- ListenAddress 0.0.0.0
- UsePrivilegeSeparation no
- PasswordAuthentication yes
sudo nano /etc/ssh/sshd_config
Restart the SSH server
sudo service ssh restart
Note: you will need to start the SSH server if you close the bash window.
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
rvm install 2.3.1
rvm use 2.3.1 --default
gem install bundle
If you are getting errors when running bundle install, it may be because of bad permissions on the bundle cache directory. Set them to 0755.
find ~/.bundle/cache -type d -exec chmod 0755 {} +
- Go to Settings > Languages & Frameworks > Ruby SDK and Gems
- Click '+' and select New Remote...
- Choose 'SSH Credentials'
- Enter the following
- Host: 127.0.0.1
- Port: 2222
- User name: [UBUNTU USER]
- Auth type: Password
- Ruby interpreter path: /home/[UBUNTU_USER]/.rvm/gems/ruby-2.3.1
Yes .. I always specified rvm gemset folder. And 2 for sure that has nothing to do with port already in use. It connects fine to ubuntu bash starts server and then throws error after that. Here is the log. If there is anyone who has had sucess connecting rubymine to bash please comment here. Till then I would continue to run my rails project in bash and edit project files in sublime in windows. That works faster. I would've only preferred rubymine over sublime for its vcs features.