How to connect to a Windows PC from a Mac OS X terminal












5















I have some Windows PCs on my network. I have Mac OS X. I try to access some Windows PCs in the network to read and write files. In OS X Finder, I see the computer_name and I can connect as Guest. But in the terminal, how can I do that?



I tried ssh computer_name, but it says "connection refused". I tried ssh asdfasdf (a computer_name that does not exist) and it gives me the same "connection refused". The leads me to suspect ssh computer_name is not the right command to access a computer, which I found on the SU answer and google.










share|improve this question




















  • 1





    Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

    – CajunLuke
    Jan 6 '12 at 1:22













  • Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

    – Paperlantern
    Jan 6 '12 at 2:29













  • but i only know the computer name, not IP information...

    – KMC
    Jan 6 '12 at 2:34











  • For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

    – Paperlantern
    Jan 6 '12 at 3:00











  • Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

    – CBHacking
    Dec 30 '18 at 2:46


















5















I have some Windows PCs on my network. I have Mac OS X. I try to access some Windows PCs in the network to read and write files. In OS X Finder, I see the computer_name and I can connect as Guest. But in the terminal, how can I do that?



I tried ssh computer_name, but it says "connection refused". I tried ssh asdfasdf (a computer_name that does not exist) and it gives me the same "connection refused". The leads me to suspect ssh computer_name is not the right command to access a computer, which I found on the SU answer and google.










share|improve this question




















  • 1





    Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

    – CajunLuke
    Jan 6 '12 at 1:22













  • Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

    – Paperlantern
    Jan 6 '12 at 2:29













  • but i only know the computer name, not IP information...

    – KMC
    Jan 6 '12 at 2:34











  • For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

    – Paperlantern
    Jan 6 '12 at 3:00











  • Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

    – CBHacking
    Dec 30 '18 at 2:46
















5












5








5


4






I have some Windows PCs on my network. I have Mac OS X. I try to access some Windows PCs in the network to read and write files. In OS X Finder, I see the computer_name and I can connect as Guest. But in the terminal, how can I do that?



I tried ssh computer_name, but it says "connection refused". I tried ssh asdfasdf (a computer_name that does not exist) and it gives me the same "connection refused". The leads me to suspect ssh computer_name is not the right command to access a computer, which I found on the SU answer and google.










share|improve this question
















I have some Windows PCs on my network. I have Mac OS X. I try to access some Windows PCs in the network to read and write files. In OS X Finder, I see the computer_name and I can connect as Guest. But in the terminal, how can I do that?



I tried ssh computer_name, but it says "connection refused". I tried ssh asdfasdf (a computer_name that does not exist) and it gives me the same "connection refused". The leads me to suspect ssh computer_name is not the right command to access a computer, which I found on the SU answer and google.







windows macos terminal






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 '12 at 2:07









CajunLuke

2,07321426




2,07321426










asked Jan 6 '12 at 1:10









KMCKMC

76272036




76272036








  • 1





    Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

    – CajunLuke
    Jan 6 '12 at 1:22













  • Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

    – Paperlantern
    Jan 6 '12 at 2:29













  • but i only know the computer name, not IP information...

    – KMC
    Jan 6 '12 at 2:34











  • For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

    – Paperlantern
    Jan 6 '12 at 3:00











  • Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

    – CBHacking
    Dec 30 '18 at 2:46
















  • 1





    Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

    – CajunLuke
    Jan 6 '12 at 1:22













  • Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

    – Paperlantern
    Jan 6 '12 at 2:29













  • but i only know the computer name, not IP information...

    – KMC
    Jan 6 '12 at 2:34











  • For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

    – Paperlantern
    Jan 6 '12 at 3:00











  • Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

    – CBHacking
    Dec 30 '18 at 2:46










1




1





Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

– CajunLuke
Jan 6 '12 at 1:22







Not an answer, but some information: ssh is a way to connect to computers that are running an ssh server. Most (if not all) UNIX-y systems (including OS X and Linux) can run ssh servers, and these can be easily turned on with built-in software. Desktop Windows does not (to my knowledge) come with an ssh server to turn on, though you (presumably) could get one and install it. (This is not an answer as I can neither point you to a Windows ssh server package nor do I know any alternative solutions.)

– CajunLuke
Jan 6 '12 at 1:22















Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

– Paperlantern
Jan 6 '12 at 2:29







Just as FYI. Syntax of ssh is 'ssh username@10.10.10.10'.

– Paperlantern
Jan 6 '12 at 2:29















but i only know the computer name, not IP information...

– KMC
Jan 6 '12 at 2:34





but i only know the computer name, not IP information...

– KMC
Jan 6 '12 at 2:34













For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

– Paperlantern
Jan 6 '12 at 3:00





For ssh, you can use computer name as well, but again i was just building on his info, this doesn't answer your question, this is for ssh to other *nix machines, see below for my direct answer.

– Paperlantern
Jan 6 '12 at 3:00













Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

– CBHacking
Dec 30 '18 at 2:46







Windows 10 now includes both SSH client and server! Has for almost a year for preview builds (blogs.msdn.microsoft.com/commandline/2018/01/22/…), and the client portion is out of beta and enabled by default in the recent releases. For the server portion, still branded beta and disabled by default, you can also read this: bleepingcomputer.com/news/microsoft/…. (Obviously, neither of these solve the problem if the server wasn't enabled before-hand.)

– CBHacking
Dec 30 '18 at 2:46












3 Answers
3






active

oldest

votes


















3














(Side note: If “ssh asdfasdf” says “Connection refused” rather than some variant of “unknown hostname”, then your ISP is doing the mildly nasty thing of “DNS redirection” which is intended to serve you a search page (to their profit) when you mistype a URL. This means they are running non-standards-compliant nameservers and software you run (that isn't a web browser) may be confused by it.)





For mounting network filesystems from the command line, the first thing you need to do is get the full URL. To do that, once you've got it up in the Finder, Get Info and look at the “Server:” field.



Then, to reproduce that in the Terminal, run open with that URL:



open smb://computer_name/share_name


You will get a dialog box requesting your credentials. Or, you can include your username and then you won't be prompted, provided that your password is in your Keychain:



open smb://your_username_on_that_computer@computer_name/share_name


(Apple file sharing is just the same, but with afp: instead of smb:.)



If you really need to do it with no GUI, you'll have to (as far as I know) do the mount directly (which requires you to manually specify its location in the filesystem by creating an empty directory). Here's an already-written answer: How can I easily mount a Windows share from my Mac?






share|improve this answer


























  • Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

    – Paperlantern
    Jan 6 '12 at 2:55






  • 2





    Just cd /Volumes/share_name if it's already mounted.

    – Kevin Reid
    Jan 6 '12 at 2:58





















1














As for the answer to the question, if my memory serves me the syntax is



mount_smbfs //whoami@SERVER/share/ /SERVER/share



SERVER can just be a computer as well, it would be any computer share, not necessarily a SERVER.



whoami is the username of the user you want to connect to the server with, you can't just connect to any old folder share on a windows box without the computer knowing its okay for you to do so.



If you are using this format, you'll have to create the folder /SERVER/share on your hard drive, it represents the full path, so the mount point has a place to go. Once the command is executed, that folder then becomes pointed at the share for that session and can be browsed through gui or terminal.






share|improve this answer


























  • i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

    – KMC
    Jan 6 '12 at 2:36











  • I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

    – KMC
    Jan 6 '12 at 2:38











  • Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

    – Paperlantern
    Jan 6 '12 at 2:45











  • Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

    – Paperlantern
    Jan 6 '12 at 2:54



















0














Windows does not support SSH natively. You can install a program like Cygwin or MinGW to get SSH functionality. Alternatively you can just enable Telnet which is native to Windows, but much less secure than SSH.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f375231%2fhow-to-connect-to-a-windows-pc-from-a-mac-os-x-terminal%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    (Side note: If “ssh asdfasdf” says “Connection refused” rather than some variant of “unknown hostname”, then your ISP is doing the mildly nasty thing of “DNS redirection” which is intended to serve you a search page (to their profit) when you mistype a URL. This means they are running non-standards-compliant nameservers and software you run (that isn't a web browser) may be confused by it.)





    For mounting network filesystems from the command line, the first thing you need to do is get the full URL. To do that, once you've got it up in the Finder, Get Info and look at the “Server:” field.



    Then, to reproduce that in the Terminal, run open with that URL:



    open smb://computer_name/share_name


    You will get a dialog box requesting your credentials. Or, you can include your username and then you won't be prompted, provided that your password is in your Keychain:



    open smb://your_username_on_that_computer@computer_name/share_name


    (Apple file sharing is just the same, but with afp: instead of smb:.)



    If you really need to do it with no GUI, you'll have to (as far as I know) do the mount directly (which requires you to manually specify its location in the filesystem by creating an empty directory). Here's an already-written answer: How can I easily mount a Windows share from my Mac?






    share|improve this answer


























    • Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

      – Paperlantern
      Jan 6 '12 at 2:55






    • 2





      Just cd /Volumes/share_name if it's already mounted.

      – Kevin Reid
      Jan 6 '12 at 2:58


















    3














    (Side note: If “ssh asdfasdf” says “Connection refused” rather than some variant of “unknown hostname”, then your ISP is doing the mildly nasty thing of “DNS redirection” which is intended to serve you a search page (to their profit) when you mistype a URL. This means they are running non-standards-compliant nameservers and software you run (that isn't a web browser) may be confused by it.)





    For mounting network filesystems from the command line, the first thing you need to do is get the full URL. To do that, once you've got it up in the Finder, Get Info and look at the “Server:” field.



    Then, to reproduce that in the Terminal, run open with that URL:



    open smb://computer_name/share_name


    You will get a dialog box requesting your credentials. Or, you can include your username and then you won't be prompted, provided that your password is in your Keychain:



    open smb://your_username_on_that_computer@computer_name/share_name


    (Apple file sharing is just the same, but with afp: instead of smb:.)



    If you really need to do it with no GUI, you'll have to (as far as I know) do the mount directly (which requires you to manually specify its location in the filesystem by creating an empty directory). Here's an already-written answer: How can I easily mount a Windows share from my Mac?






    share|improve this answer


























    • Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

      – Paperlantern
      Jan 6 '12 at 2:55






    • 2





      Just cd /Volumes/share_name if it's already mounted.

      – Kevin Reid
      Jan 6 '12 at 2:58
















    3












    3








    3







    (Side note: If “ssh asdfasdf” says “Connection refused” rather than some variant of “unknown hostname”, then your ISP is doing the mildly nasty thing of “DNS redirection” which is intended to serve you a search page (to their profit) when you mistype a URL. This means they are running non-standards-compliant nameservers and software you run (that isn't a web browser) may be confused by it.)





    For mounting network filesystems from the command line, the first thing you need to do is get the full URL. To do that, once you've got it up in the Finder, Get Info and look at the “Server:” field.



    Then, to reproduce that in the Terminal, run open with that URL:



    open smb://computer_name/share_name


    You will get a dialog box requesting your credentials. Or, you can include your username and then you won't be prompted, provided that your password is in your Keychain:



    open smb://your_username_on_that_computer@computer_name/share_name


    (Apple file sharing is just the same, but with afp: instead of smb:.)



    If you really need to do it with no GUI, you'll have to (as far as I know) do the mount directly (which requires you to manually specify its location in the filesystem by creating an empty directory). Here's an already-written answer: How can I easily mount a Windows share from my Mac?






    share|improve this answer















    (Side note: If “ssh asdfasdf” says “Connection refused” rather than some variant of “unknown hostname”, then your ISP is doing the mildly nasty thing of “DNS redirection” which is intended to serve you a search page (to their profit) when you mistype a URL. This means they are running non-standards-compliant nameservers and software you run (that isn't a web browser) may be confused by it.)





    For mounting network filesystems from the command line, the first thing you need to do is get the full URL. To do that, once you've got it up in the Finder, Get Info and look at the “Server:” field.



    Then, to reproduce that in the Terminal, run open with that URL:



    open smb://computer_name/share_name


    You will get a dialog box requesting your credentials. Or, you can include your username and then you won't be prompted, provided that your password is in your Keychain:



    open smb://your_username_on_that_computer@computer_name/share_name


    (Apple file sharing is just the same, but with afp: instead of smb:.)



    If you really need to do it with no GUI, you'll have to (as far as I know) do the mount directly (which requires you to manually specify its location in the filesystem by creating an empty directory). Here's an already-written answer: How can I easily mount a Windows share from my Mac?







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 20 '17 at 10:17









    Community

    1




    1










    answered Jan 6 '12 at 2:43









    Kevin ReidKevin Reid

    2,45411325




    2,45411325













    • Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

      – Paperlantern
      Jan 6 '12 at 2:55






    • 2





      Just cd /Volumes/share_name if it's already mounted.

      – Kevin Reid
      Jan 6 '12 at 2:58





















    • Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

      – Paperlantern
      Jan 6 '12 at 2:55






    • 2





      Just cd /Volumes/share_name if it's already mounted.

      – Kevin Reid
      Jan 6 '12 at 2:58



















    Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

    – Paperlantern
    Jan 6 '12 at 2:55





    Ah, this works but just opens it in the gui, the way i read it, he wanted to be able to browse the contents once connected while still in terminal. This does get you to the share as well though.

    – Paperlantern
    Jan 6 '12 at 2:55




    2




    2





    Just cd /Volumes/share_name if it's already mounted.

    – Kevin Reid
    Jan 6 '12 at 2:58







    Just cd /Volumes/share_name if it's already mounted.

    – Kevin Reid
    Jan 6 '12 at 2:58















    1














    As for the answer to the question, if my memory serves me the syntax is



    mount_smbfs //whoami@SERVER/share/ /SERVER/share



    SERVER can just be a computer as well, it would be any computer share, not necessarily a SERVER.



    whoami is the username of the user you want to connect to the server with, you can't just connect to any old folder share on a windows box without the computer knowing its okay for you to do so.



    If you are using this format, you'll have to create the folder /SERVER/share on your hard drive, it represents the full path, so the mount point has a place to go. Once the command is executed, that folder then becomes pointed at the share for that session and can be browsed through gui or terminal.






    share|improve this answer


























    • i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

      – KMC
      Jan 6 '12 at 2:36











    • I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

      – KMC
      Jan 6 '12 at 2:38











    • Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

      – Paperlantern
      Jan 6 '12 at 2:45











    • Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

      – Paperlantern
      Jan 6 '12 at 2:54
















    1














    As for the answer to the question, if my memory serves me the syntax is



    mount_smbfs //whoami@SERVER/share/ /SERVER/share



    SERVER can just be a computer as well, it would be any computer share, not necessarily a SERVER.



    whoami is the username of the user you want to connect to the server with, you can't just connect to any old folder share on a windows box without the computer knowing its okay for you to do so.



    If you are using this format, you'll have to create the folder /SERVER/share on your hard drive, it represents the full path, so the mount point has a place to go. Once the command is executed, that folder then becomes pointed at the share for that session and can be browsed through gui or terminal.






    share|improve this answer


























    • i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

      – KMC
      Jan 6 '12 at 2:36











    • I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

      – KMC
      Jan 6 '12 at 2:38











    • Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

      – Paperlantern
      Jan 6 '12 at 2:45











    • Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

      – Paperlantern
      Jan 6 '12 at 2:54














    1












    1








    1







    As for the answer to the question, if my memory serves me the syntax is



    mount_smbfs //whoami@SERVER/share/ /SERVER/share



    SERVER can just be a computer as well, it would be any computer share, not necessarily a SERVER.



    whoami is the username of the user you want to connect to the server with, you can't just connect to any old folder share on a windows box without the computer knowing its okay for you to do so.



    If you are using this format, you'll have to create the folder /SERVER/share on your hard drive, it represents the full path, so the mount point has a place to go. Once the command is executed, that folder then becomes pointed at the share for that session and can be browsed through gui or terminal.






    share|improve this answer















    As for the answer to the question, if my memory serves me the syntax is



    mount_smbfs //whoami@SERVER/share/ /SERVER/share



    SERVER can just be a computer as well, it would be any computer share, not necessarily a SERVER.



    whoami is the username of the user you want to connect to the server with, you can't just connect to any old folder share on a windows box without the computer knowing its okay for you to do so.



    If you are using this format, you'll have to create the folder /SERVER/share on your hard drive, it represents the full path, so the mount point has a place to go. Once the command is executed, that folder then becomes pointed at the share for that session and can be browsed through gui or terminal.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 6 '12 at 3:51

























    answered Jan 6 '12 at 2:34









    PaperlanternPaperlantern

    3,4621913




    3,4621913













    • i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

      – KMC
      Jan 6 '12 at 2:36











    • I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

      – KMC
      Jan 6 '12 at 2:38











    • Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

      – Paperlantern
      Jan 6 '12 at 2:45











    • Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

      – Paperlantern
      Jan 6 '12 at 2:54



















    • i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

      – KMC
      Jan 6 '12 at 2:36











    • I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

      – KMC
      Jan 6 '12 at 2:38











    • Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

      – Paperlantern
      Jan 6 '12 at 2:45











    • Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

      – Paperlantern
      Jan 6 '12 at 2:54

















    i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

    – KMC
    Jan 6 '12 at 2:36





    i do not understand your writing. What is "memory serves"? Is it related to the memory information of the computer? What is "mount_smbfs" is it a unix command?

    – KMC
    Jan 6 '12 at 2:36













    I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

    – KMC
    Jan 6 '12 at 2:38





    I tried in terminal 'mount_smbfs // whoami @computer_name', it gives error "could not find". What is whoami and @SERVER? is it an IP? I do not have any IP. Only computer name. Between windows machine, I only need to type on run: \computer_name.

    – KMC
    Jan 6 '12 at 2:38













    Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

    – Paperlantern
    Jan 6 '12 at 2:45





    Yeah windows is friendlier to it's "kin" heh, windows speaks windows. OSX doesn't speak windows unless you tell it too, smbfs is the command to tell it to use the samba communication so to speak. Also, the second path, is where you want to mount it to, such as the folder SERVER and the folder SHARE in your home folder on your mac.

    – Paperlantern
    Jan 6 '12 at 2:45













    Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

    – Paperlantern
    Jan 6 '12 at 2:54





    Correction, it has been a while since I've done this through terminal, i usually just use the "Go" menu. the final /SERVER/Share bit represents the FULL path of the mount point, so if you created it in your home folder it would be /Users/yourusername/SERVER/Share

    – Paperlantern
    Jan 6 '12 at 2:54











    0














    Windows does not support SSH natively. You can install a program like Cygwin or MinGW to get SSH functionality. Alternatively you can just enable Telnet which is native to Windows, but much less secure than SSH.






    share|improve this answer




























      0














      Windows does not support SSH natively. You can install a program like Cygwin or MinGW to get SSH functionality. Alternatively you can just enable Telnet which is native to Windows, but much less secure than SSH.






      share|improve this answer


























        0












        0








        0







        Windows does not support SSH natively. You can install a program like Cygwin or MinGW to get SSH functionality. Alternatively you can just enable Telnet which is native to Windows, but much less secure than SSH.






        share|improve this answer













        Windows does not support SSH natively. You can install a program like Cygwin or MinGW to get SSH functionality. Alternatively you can just enable Telnet which is native to Windows, but much less secure than SSH.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 6 '12 at 3:22









        ubiquibaconubiquibacon

        6,64422033




        6,64422033






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f375231%2fhow-to-connect-to-a-windows-pc-from-a-mac-os-x-terminal%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...