cannot ssh from linux to windows machine

brucezepplin

I have a linux computer which I am comfortable using ssh to get into other linux devices on the same router.

What I want to do is ssh into my work computer, which is connected via an ethernet cable, and I want to be able to do this from any network my laptop is on.

I have installed openssh on my windows machine and started the server successfully.

Trying to ssh using:

ssh -p 2222 <WINDOWS IP ADDRESS>

results in a time out. I think this is happening because

a) the linux machine and windows machine are on different networks b) the windows machine is connected via ethernet.

are there any considerations to take, other than specifying the port (which is open). I can ssh from my linux machine to another linux machine by typed ssh <IP ADDRESS> when on same network, so not a problem with my linux machine - and using my windows machine i can ssh into a private server (using both openssh and putty).

What do I need to do?

I can locally ssh into the windows machine. An interesting find from this is that when I use my own windows machine to ssh locally, I am presented with my @.

I therefore tried putting the username before the windows machine's public IP address like this:

myuser@137......

and tried to get in form my linux machine - it says connection refused on port 22. I guess this is something only our network manager can remedy - unlikely given I'm trying to ssh through a university network

Thanks

Pierre-Alain TORET

You have to create a rule in the Windows Firewall for both the input and output connection on port 22. It's in the advanced parameters of the Windows Firewall -> Rule of incoming traffic (I'm translating my french version here) -> Right click and New rule -> Port -> TCP -> Local specific port (22) -> Accept connection -> Then validate

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to copy a file over ssh from a remote machine?(linux to windows)

From Dev

Running Pyplot over Putty ssh from windows machine to linux

From Dev

Linux machine log in Windows machine using "ssh"?

From Dev

SSH from pexpect (pxssh) fails when I try from a linux machine to a windows ssh client server

From Dev

Can ssh and scp to ec2 linux instance but cannot scp from linux instance to local machine

From Dev

Cannot ping or ssh from lan to virtual machine

From Dev

SSH/SCP using R from a windows machine

From Dev

SSH into Windows 10 machine from Ubuntu

From Dev

What should I do to ssh with a key to a remote server from a Linux machine, when I can already ssh from a Windows machine using PuTTY?

From Dev

Cannot ssh to a machine suddenly

From Dev

SSH an EC2 machine using Windows' Linux Bash Shell

From Dev

Unable to ping a Windows machine from Linux

From Dev

How to remote Shutdown Linux machine from Windows?

From Dev

Linux mount nfs disk from windows machine

From Dev

Java: Accessing Windows files from Linux machine

From Dev

Unable to ssh into a linux machine

From Dev

Access to a windows 7 machine from a linux machine on a LAN

From Dev

Access directory on Linux machine from a Windows 7 machine over WAN

From Dev

Could not fetch snmp values of a windows machine from linux machine

From Dev

SSH into Linux Guest Virtual machine from External Source?

From Dev

Connecting from Cygwin to local linux machine using SSH?

From Dev

Accessing Windows Box from Linux Terminal SSH

From Dev

ssh from linux to windows does nothing

From Dev

rsync from Linux to Windows over SSH

From Dev

sudo on Windows 10 Linux subsystem cannot resolve local machine name

From Dev

Displaying windows from a Windows virtual machine on a Linux host window manager

From Dev

How to setup SSH Keys on Windows machine (SSH Client) to access Azure Linux VM?

From Dev

Cannot SCP from Linux EC2 Instance to Local Machine

From Dev

Cannot SCP from Linux EC2 Instance to Local Machine

Related Related

  1. 1

    how to copy a file over ssh from a remote machine?(linux to windows)

  2. 2

    Running Pyplot over Putty ssh from windows machine to linux

  3. 3

    Linux machine log in Windows machine using "ssh"?

  4. 4

    SSH from pexpect (pxssh) fails when I try from a linux machine to a windows ssh client server

  5. 5

    Can ssh and scp to ec2 linux instance but cannot scp from linux instance to local machine

  6. 6

    Cannot ping or ssh from lan to virtual machine

  7. 7

    SSH/SCP using R from a windows machine

  8. 8

    SSH into Windows 10 machine from Ubuntu

  9. 9

    What should I do to ssh with a key to a remote server from a Linux machine, when I can already ssh from a Windows machine using PuTTY?

  10. 10

    Cannot ssh to a machine suddenly

  11. 11

    SSH an EC2 machine using Windows' Linux Bash Shell

  12. 12

    Unable to ping a Windows machine from Linux

  13. 13

    How to remote Shutdown Linux machine from Windows?

  14. 14

    Linux mount nfs disk from windows machine

  15. 15

    Java: Accessing Windows files from Linux machine

  16. 16

    Unable to ssh into a linux machine

  17. 17

    Access to a windows 7 machine from a linux machine on a LAN

  18. 18

    Access directory on Linux machine from a Windows 7 machine over WAN

  19. 19

    Could not fetch snmp values of a windows machine from linux machine

  20. 20

    SSH into Linux Guest Virtual machine from External Source?

  21. 21

    Connecting from Cygwin to local linux machine using SSH?

  22. 22

    Accessing Windows Box from Linux Terminal SSH

  23. 23

    ssh from linux to windows does nothing

  24. 24

    rsync from Linux to Windows over SSH

  25. 25

    sudo on Windows 10 Linux subsystem cannot resolve local machine name

  26. 26

    Displaying windows from a Windows virtual machine on a Linux host window manager

  27. 27

    How to setup SSH Keys on Windows machine (SSH Client) to access Azure Linux VM?

  28. 28

    Cannot SCP from Linux EC2 Instance to Local Machine

  29. 29

    Cannot SCP from Linux EC2 Instance to Local Machine

HotTag

Archive