2

I am trying to access a Windows PC on my network from Ubuntu using the command line. My goal is to retrieve a few files from that Windows box.

  • I don't have access to the Ubuntu GUI, all I can use is the command line
  • I don't have physical access to the Windows box
  • the username I have for the Windows box has Administrator rights

I have tried to use those 2 smbclient commands but both gave the same error:

smbclient //192.168.1.64/c$
smbclient //192.168.1.64/c$ -U WindowsUserName
Connection to //192.168.1.64/c$ failed (Error NT_STATUS_CONNECTION_REFUSED)

I also tried to use this answer, but got an error too:

mount -t smbfs //192.168.1.64/c$ /mnt/windows-pc -o user=WindowsUserName
mount: mount point /mnt/windows-pc does not exist
assylias
  • 170

1 Answers1

2

Check that the folder windows-pc exists in /mnt

If its doesnt create it with

mkdir /mnt/windows-pc

Your C drive will need to be shared for this to work? If you want to access it why don’t your just try telnet to it? Or FTP? Are you only trying to share drives?

Thanks William

LinuxBill
  • 2,107