Cannot ssh to localhost [closed]
Question Closed. This question is off-topic. It is not currently accepting answers.
</div>
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to see if ssh is properly configured on Ubuntu 11.04:
ashish@ubuntu:~$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
ashish@ubuntu:~$
What do I do from here?
Answer Try:
sudo apt-get install openssh-server
It's most likely that the ssh server is not installed as only the client is installed by default.…
Read more ⟶How can I install the Spring Tool Suite in Ubuntu?
Question How do I install STS on Ubuntu? I already downloaded the compressed STS tar.gz file from spring.io. Answer Step 1: Download the latest Spring Tool Suite for Linux from STS official website: https://spring.io/tools
Step 2: Extract into any folder which you prefer. My extracted Spring Tool Suite locations is /home/harishshan/springsource
Step 3: Create the Menu icon for quick access
sudo vim /usr/share/applications/STS.desktop
Step 4: Enter the following content
[Desktop Entry]
Name=SpringSource Tool Suite
Comment=SpringSource Tool Suite
Exec=~/springsource/sts-3.…
Read more ⟶nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument
Question I'm working through https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04. I've completed the tut but I'm getting a 502 error.
My nginx server block configuration file:
server {
listen 80;
server_name 198..xxx.xxx.xxx mysite.org;
location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /home/deploy/mysite3; }
location / { include uwsgi_params; uwsgi_pass unix:/run/uwsgi/mysite3.sock; } }
deploy@server:/etc/nginx/sites-enabled$ sudo systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.…
Read more ⟶Change the X-Frame-Options to allow all domains
Question I am trying to use some site of mine as an iframe from a different site of mine.
My problem is- the other site is always consistently changes his IP address and does not have an domain name.
So, I read that you can allo a specific domain by adding this lint to the /etc/nginx/nginx.conf:
add_header X-Frame-Options "ALLOW-FROM https://subdomain.example.com/";
My question is: It is possible to allow my site to be imported as an iframe from all IP addressed and domains?…
Read more ⟶IntelliJ Idea 12 + Android + Scala nowadays
Question As suggested to me, I've run through a few articles describing how to make IntelliJ Idea and Android and Scala work together, but it turned out they were all written 1 or 2 years ago. And likely, something has changed since that time and now there are other solutions to achieve this goal. Concretely, there is a new solution https://github.com/yareally/android-scala-intellij-no-sbt-plugin for which I don't know if it works well or not.…
Read more ⟶VS Code will not build c++ programs with multiple .ccp source files
Question Note that I'm using VS Code on Ubuntu 17.10 and using the GCC Compiler.
I'm having trouble building a simple program which makes use of additional .ccp files. I'm probably missing something obvious here as I'm fairly new to programming but I'll explain what I've done so far. This is something that is stopping me from continuing with a tutorial I'm doing.
I have written a very simple program to demonstrate my point as follows.…
Read more ⟶Fish Shell: How can I customize the colors for the autocomplete feature?
Question I started using Fish (and oh-my-fish) a couple of weeks ago and one of the things that I find somewhat visually hard is the default background color of the autocomplete options (see the purple background in the image). I tried looking in the Fish page, but couldn't find anything related to that. I'd like to know how that background color can be changed.
In case you're wondering, I'm using LXTerminal in LUbuntu (a Ubuntu distro with LXDE).…
Read more ⟶