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.
Related
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).
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.
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
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)
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 am trying to log in to my computer at work through cyberduck.
I can ssh into the computer just fine but I must first SSH into the central system, then ssh from there into my computer.
Is there a way to allow Cyberduck to ssh into my work computer, i.e. ssh twice at once?
You can use e.g. PuTTY to set up the port forwarding, also called an SSH tunneling (for purposes such as yours).
See https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-port-forwarding
Alternatively you can use an SFTP client that supports this natively, e.g. WinSCP.
There's a guide for this here:
https://winscp.net/eng/docs/guide_tunnel
Note that aside from instructions, how to do this using WinSCP native tunneling functionality (section Section up tunnel in WinSCP), the guide also shows, how to tunnel WinSCP via PuTTY (section Section up tunnel using PuTTY for SFTP/SCP session). So if you insist on using Cyberduck, you can just replace WinSCP with Cyberduck in the guide.
(I'm the author of WinSCP)
Yes, you can configure local port forwarding. With it, localhost's socket will be forwarded to your work computer so middle SSH server will work as proxy.