Desired Behaviour:
I'm setting up a Windows machine next to my Linux machine as a client needs me to use some Windows specific software.
I need to copy a bunch of folders from Linux
to Windows 10
.
I'm trying to use WinSCP
to achieve this, and these are the things I think I need:
IP Address:
ifconfig
on Linux machine returns inet addr: 192.xxx.x.x
Whilst googling 'whats my ip' on Linux machine returns 118.xxx.xx.xx
Q01: Which one do I use?
Protocol and Port Number:
Q02: SCP and 22?
Username and Password:
Q03: Do I just use the username and password I usually use to login to my Linux machine?
...A lot of the tutorials I've come across talk about connecting to a Linux computer as a virtual machine, or server, and therefore I'm wondering if I need something to be 'running' on the Linux machine for this to work?
So, last questions:
Q04: Does something need to be running on Linux?
Q05: How do I define which folders will be 'browsable' on the Linux Machine?
What I've Tried:
My last attempt in WinSCP used these credentials:
- Protocol: SCP
- Port: 22
- Hostname: [the
inet addr
ip fromifconfig
] - Username: [my normal Linux login username]
- Password: [my normal Linux login password]
And gave me this error:
Network error: Connection to "192.xxx.x.x" refused.
Edit:
The answer below is more comprehensive, but as a follow up:
I did this on Linux machine:
sudo service ssh start
And got this:
ssh: unrecognised service
So, I had to do this:
sudo apt-get purge openssh-server
sudo apt-get install openssh-server
And then start with:
sudo service ssh restart
And then I used credentials in WinSCP as stated in original post and it worked.