Centos 7 Remote SSH access denied [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 7 years ago.
Improve this question
I installed Centos7, all fine, till I want to access via SSH, I get always Access Denied.
I get it with the root user, and another new created user
I tested SSH within the LAN, so no firewall issue
For the root user "PermitRootLogin yes" is set.
SSH service is started
... till now, I have no clue what I ignored to set it right to have it working.
I got a look into the secure log. When I try to login with the root user on the LAN, I do like:
ssh root#192.168.2.11
in log I get: invalid user root#localhost from 192.168.2.108
When I try through VPN-tunnel:
ssh root#192.168.2.11
in log I get: invalid user kristoxxxxxxxx
this is my username on my OSX device. why is this one passed?

This may be due to RSA or DSA keys, os please delete or backup following files from /etc/ssh director to another one.
ssh_host_dsa_key, ssh_host_dsa_key.pub, ssh_host_key, ssh_host_key.pub, ssh_host_rsa_key , ssh_host_rsa_key.pub etc
Now restart your sshd service
service sshd restart

Related

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.

Locked myself out of SSH, Plesk access available [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
Somehow I seem to manage to close port 22 on my Ubuntu Server via ufw.
I still can access the server via the plesk interface (so 8443 seems to be open).
I can NOT access the Plesk Upgrades (port 8447) where I could install the plesk firewall to solve the issue with port 22.
I was searching to find a solution how to open port 22 on ufw via plesk, but everthing I found directed me to "open a SSH connection" or "install the plesk firewall".
What are my options? Can I create a script which opens port 22 and execute it via plesk somehow?
Solved it!
In Plesk, go to Tools&Settings -> Schedule a task -> Add Task -> Choose "run a command" and as command you insert "/usr/sbin/ufw allow 22" (if your ufw is in that folder).
Make sure the system user is set to root.
Click on "Run Now".
The task should execute sucessfully, and the connection via SSH should be available again.

SFTP through ssh node [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 8 years ago.
Improve this question
I'm trying to set up an sftp on a networked server. I can access the machine through the outside world by first ssh'ing into a network login server through the following process:
ssh [network-username]#login.server.co.uk
then, once logged in
ssh [server-username]#[hostname]
Is there anyway to sftp into the networked server? I cant find a way to add the initial step into the login process.
Thanks!
You have not specified what SFTP client you are using.
In general, some SFTP clients DO allow SSH tunneling.
WinSCP for instance.
See Connect to FTP/SFTP server which can be accessed via another server only.
OpenSSH suite allows that too.
For example see Forward SSH traffic through a middle machine.
(I'm the author of WinSCP)

Adding a new computer's ssh key to a server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I have a server that currently accepts passwordless ssh login on my desktop computer. Now I want to log into the server using my laptop. If I didn't have access to my desktop computer, how would I be able to add my laptops ssh key? In fact every time I try to ssh into the server from my laptop, it asks me for the password. I'm not sure what this is asking for, what password is it referring to? None of the passwords that I know works, it's always giving back permission denied. Is it the private ssh key I setup from my desktop computer?
Basically, how would I login to the server from the laptop?
This is on a digital ocean server. I changed the sshd_config file and allowed by uncommenting:
PasswordAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
Apparently both of the above were commented out even when my passwordless ssh worked from the desktop computer. How could this happen?
I know I can do ssh-copy-id, but doesn't that require me to be able to SSH into the server in the first place? With no access to the desktop workstation, there's no way to access the server in any way!
Your question is not very clear. Anyway:
When you login to a server, you are asked the password of the remote user on that server. This user is usually specified when doing ssh:
ssh remote_user#server
However, it is possible to login without a password or with a passphrase (i.e., a password on the local PC used to encrypt the real ssh password). This is well explained here. In practice, a ssh password is stored on your local computer and used to automatically connect to the remote server. This password is encrypted and can be protected by a passphrase.