SSH Permission denied error in virtual box Guest [closed] - ssh

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am running Virtualbox 5.0.18 with ubuntu desktop 14.04 distribution.
There are 4 VMs, 3 with ubuntu server 14.04 , 1 running ubuntu Desktop 14.04.
All VMs have NAT and Host-only network configured.
SSH to ubuntu Desktop 14.04, VM and host machine, is doing ok
SSH to VMs running ubuntu server 14.04 is giving me permission denied error.
Which logs should I look, to figure out the problem?
Ping is working, both way, for servers as well as desktop and telnet host 22 is ok for desktop only

As said in my comments.
You need to see if your sshd has started. if yes, you need to figure out the logs. One of the advice would be to start your sshd with some -d options to get more verbose debug output.
And see this blog if your vbox's config is the same.
Last but not least, here is the step by step troubleshooting for any linux appliances
All the best

Related

Cannot ssh and ping into my CentOS VirtualBox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I donwloaded the virtualbox image from this website:
https://www.osboxes.org/centos/#centos-782003-info
I uses CentOS 7.8.2003
I am able to start the VirtualBox but I cannot ssh into it. Then, I realized that I also cannot ping to the IP address. I already configure the network to Bridge.
Do I need to configure something on CentOS Virtual Box for me to be able to ssh into it from the Host machine? Thank you very much in advance.
You should probably post this on Superuser or Serverfault.
Anyway, I see you have 192.168.0.30 on your host machine, try configuring 192.168.0.31 on interface enp0s3 on your VM and restart the network.
You should be able to ping now.

What password should I enter for SSH? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to learn how to use SSH and it's kinda hard for me. I installed PuTTY (windows 7 32-bit). It asked for my IP so I searched 'What is my ip' and pasted it in. Then in the 'command prompt style box' I entered my username 'dell'. Now it's asking for password. I'm really confused because my laptop has no password and there's no password I know of. Can you guys help?
Entering nothing doesn't work:
Putty is just a command line interface, that will allow you to run commands like ssh.
However, if you want to SSH into your machine you have to install an SSH server on your machine.
There are multiple solution on the web:
https://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/
122.162.179.255 is likely the IP address of your network router / ADSL modem / etc and not your Windows PC (which won't have an SSH server installed by default).
There really is very little to learn about SSH itself, at least for basic day to day use.
If you want to learn how to use a UNIX-style command prompt then consider installing WSL or setting up a Linux installation on a separate computer (maybe a Raspberry Pi).

how to connect raspbian strech over SSH [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I just upgraded the ssd card to 2018-11-13-raspbian-stretch-lite. Hence, no screen, no keyboard, just headless. With the version before I used SSH to acess the raspberrypi 3. But now i have trouble. SSH is disabled by default. Could be overcome by writing an empty file named ssh into / . Fine, should be easy, but it isn't. I tried to mount the ssd-card in a card reader from a linux computer. This would allow to write the required empty file with cat /dev/null > /mnt/rasp/ssh , but it doesn't work, because the device is mounted read only indepent of how I try to mount for read-write!
Has anybody an Idea how to open the ssh, maybe over USB-Telnet, or what ever?
You have to create a file called ssh in the boot partition, not the root partition.
You can also create a file called wpa_supplicant in the same place and your RasPi will join your wifi network.
You'll probably be able to ssh into it with:
ssh pi#raspberrypi.local
If not, look in your router's "DHCP clients" table or use nmap to get its IP address. Or install the fing app in your smartphone and it'll tell you the IP addresses and host/OS of all your network clients.

VM Network settings for a Wireless Connection of a Laptop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have an Apache Web Server installed on Ubuntu 16.04 in a VM, the problem I'm having is that my server doesn't seem to have its own IP address. I tried using hostname -I but only a blank line appears, while ifconfig shows 127.0.0.1 and 10.0.0.2.
The problem I suspect is that it's related to the network settings of my VM since when I imported it to the computer laboratory at school, the commands hostname -I and ifconfig showed an IP address like 192.xxx.x.xx, I tried searching around but I can't find similar problems where the host machine is connected to a router via wireless connection. What can I do?
EDIT:
VM software being used is Oracle VM VirtualBox Manager
Network Settings:
Because "Bridged Adapter" is used the router acts as DHCP server.
There are 2 solutions if you want to access a server located at VM from host without network connected:
Set adapter as Internal network see details
Note: in this case Internet cannot be accessed through this interface.
You would probably like to add another Bridged or NAT adapter to acceesss external network
or NAT details (how to setup)

SCP File Transfer Between Pi and Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
With pscp in windows command line, i can send file from Windows to Pi or i can copy a file from Pi to Windows. But opposite does not work. I cant send a file from pi to windows with pi's terminal.
scp text.txt username#192.168.1.100:C:/Users/Desktop/
or C/Users/Desktep with out colon.
Both does not work. It returns nothing. After few minutes it says connection timed out.
scp is a client that connects to a server. Your Pi is running an SSH server which allows you to connect to it from other machines using pscp or scp (depending on what OS). So to make it work the other way, you need to install an SSH server on your windows machine.
I followed this article to install on my windows machine:
http://linuxbsdos.com/2015/07/30/how-to-install-openssh-on-windows-10/
Sometime in the future based on the announcement by Microsoft at http://blogs.msdn.com/b/powershell/archive/2015/06/03/looking-forward-microsoft-support-for-secure-shell-ssh.aspx it appears Windows will have SSH server.