Remote login via terminal

can someone tell me how i use Terminal to login into my Server (Running OS X Server 10.4.3) at home? i need to know what command to use and also, once logged in via terminal whatever commands i enter will be controlling the server and not the local machine, right? sorry for the basic question but whatcha gonna do? please help....
john.

I've never user /accessed OS X server, but Mac to Mac access (I believe) should be the same.
Ensure that 'Remote Login - SSH' is enables on your Mac's firewall..... then in Terminal type;
ssh username@servername (or IP address). this will prompt for a passord... which will be the remote username's password on the OS X server machine.
Once you are on the remote server any commands you enter in that shell (the command prompt in Terminal) will be run on that server. Toexit from the remote machine just type 'exit'
What are you trying to run on the remote machine... I may be able to assist
Des

Similar Messages

  • Remote login via ssh and public keys

    I'm not exactly a UNIX expert, but I need to be able to remote login to my PowerBook. The problem with enabling ssh is that as soon as I'm on campus, all kinds of nefarious hosts try brute force attempts to crack my password. I've heard that public/private key logins are the answer, and I've managed to get the public key in the right place on my PowerBook (the private key resides on my iPhone, from which I'll be logging in). But I have two questions:
    1) How do I disable logins via user/password?
    2) When I use my private key, I'm asked to enter the password for the key -- ssh isn't properly storing that password. I've checked permissions, but how can I get ssh to store that password, as it should?

    1) In Sharing > Remote Login, do I still need an account listed to be able to use ssh logins with a public key? I ask because currently (i.e. password authentication enabled), when no accounts are listed, login via public key doesn't work. In other words, an account has to be listed for public key logins to work.
    Yes you still need an account name to login to that computer. However you don't need to specify an account in the sharing preferences. You can lock down the security further by limiting which user accounts can login via ssh.
    by default if you don't specify a username when you login it will use the username of the device your logging in from. So to use an alternative login name you would use
    ssh [email protected]
    whereas john can be anyname or your choosing.
    Put another way: if turn off password authentication for ssh in sshd_config, how should Sharing > Remote Login be configured?
    If you turn off password authentication you still need to allow your user account to login via ssh in the sharing preferences or you can allow all.
    2) According to that MacOS X Hints article:
    "Leopard has now a built-in support for SSH authentication with public keys.
    OSX has been able to use ssh public key authentication since day 1 of the beta release of osx. It is not new to leopared it has been around for years.
    Just open Terminal and ssh to your public-key-enabled server. A Keychain window appears, proposing you to enter the pass phrase, and then remembering it in your keychain. "
    I have not used this functionality as I don't use any passwords for ssh logins.
    They're talking about the password associated with the key. But on second thought, that password is being saved on the client, not the server, right?
    I am sure this is the case.

  • How to you prevent disabling remote login via managed preferences?

    this doesn't seem to be an obvious setting.
    i want to disable our users from disabling remote login on their machines. some of them know how to do this.
    everyone has moblie home accounts, btw.
    hope someone can help!
    thanks in advance.

    thanks for your response, Tony.
    your 2nd suggestion is more towards what i am looking to do.
    we have WGM with User, Computer, Groups, and Computer Groups. right now, we aren't managing any preferences and we do make the users local admins on their machines after their first login/Home Sync.
    i was hoping to add a manifest to WGM in Preferences/Details, but i am not sure if this is possible and if it is, i don't know how to do it.
    we have users in remote sites that connect to our network via vpn and sometimes i need to remotely access their machines. but i can't on those that turn it off, obviously.
    thanks again!

  • Remote login via Windows XP - Mac OS X Version 10.2.8

    Is it possible to setup a system running Mac OS X Version 10.2.8 so that it can be accessed remotely via a Windows machine? Ultimately I would like to add this machine to a Windows Server 2003 domain.
    Thanks.

    On an Intel Mac running Mac OS X 10.5.8, you need to buy a Snow Leopard DVD to upgrade the OS.
    (117506)

  • Remote login with terminal

    How do I log in remotely with Terminal? Or just in general in System Preferences

    Hi Tyler,
    I was able to find a few articles that go over allowing a remote computer to access your Mac through Terminal. Depending on what operating system you're using, check out one of these three articles:
    OS X Mountain Lion: Allow a remote computer to access your Mac
    http://support.apple.com/kb/PH10618
    OS X Lion: Allow a remote terminal to access your computer
    http://support.apple.com/kb/PH3721
    OS X Snow Leopard 10.6: Allowing a remote terminal to access your computer
    http://support.apple.com/kb/PH7246
    Hope that helps,
    David

  • Can't Set Remote Login OFF via Send Unix Command systemsetup

    Trying to use the System Setup->Remote Login template in ARD to turn off Remote Login (SSH) in Sharing panel of System Preferences on Mac that is administered through Apple Remote Desktop.
    In Apple Remote Desktop (ARD), I select the client machine, then choose "Send Unix Command..." from the "Manage" menu. In resultant window, I pick "System Setup->Remote Login (SSH) from the "Template" drop down box in the upper right. That populates the upper window with Unix commands. I edit/change the "on" to "off" and tell the dialog to Run command as User: root, then click on "Send" button.
    Progress bar goes forever with no change.
    I can turn off Remote Login via ARD by controlling each client machine via an ARD WINDOW, then navigating to the Sharing Preference pane, but that process is tedious when performing for multiple client Macs.
    Strange, but I CAN use the "Send Unix Command..." outlined above to turn ON Remote Login, and get the status of Remote Login ("systemsetup -getremotelogin"). Just can't turn OFF Remote Login (quickly/efficiently).
    man systemsetup suggests I need to write the command as "setremotelogin -f off" but that failed with an improper command syntax error.
    Thoughts?

    It’s waiting for you to type a confirmation. If you run this command on the command line normally, you’ll see the message:
    Do you really want to turn remote login off? If you do, you will lose this connection and can only turn it back on locally at the server (yes/no)?
    Use this command instead:
    systemsetup -f -setremotelogin off

  • Open a UNIX terminal (with a remote login session) on JButton click

    All,
    -- The domain of this problem blurs the line which decides if this question has to be posed on a Java swing audience or a UNIX forum. To understand this problem apart from being a Java swing person, you would also need to have a basic understanding of UNIX concepts such as gnome-terminal, xterm and rsh --
    I am creating a network monitoring GUI which has a JTable having many entries that pertains to various system information about nodes in a network. I have overridden the default cellEditor in the table with a custom TableCellEditor (camickr's archive) and have a column containing JButtons labelled with hostnames.
    Now, when a user clicks on any of these buttons, I would like to open up a terminal (xterm or /usr/bin/gnome-terminal) followed by executing some commands on this NEW terminal shell. In other words, I would like to automate this process as if the user opens a terminal and then keys in commands to rsh into the remote host by specifying the hostname (which is the label on the JButton) and finally provide the user with this state, from where on she takes control on that remote login session.
    I tried searching through various previous posts. I did find a related one:
    http://forum.java.sun.com/thread.jspa?threadID=5180094&messageID=9699614#9699614
    But I still have difficulty in getting my problem solved.
    The following statements are executed when one such button (labelled by a hostname) is clicked:
    public void actionPerformed(ActionEvent e) {
             String hostname = e.getActionCommand();
                fireEditingStopped();
                System.out.println( "probing:  " + hostname); //This appears correctly on the console
                Process p;
                   try {
                        p = Runtime.getRuntime().exec("/usr/bin/gnome-terminal");
                        BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                        BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
                                    out.write("rsh -l root "+hostname); //attempting to remote login in the NEW shell (terminal)..... I guess :|
                   } catch (IOException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
    .I guess I am not having control on the new terminal. Is there any way I could control the newly spawned shell?
    Appreciate,
    Rajiv

    Alright...
    assuming gnome-terminal is in /usr/bin path,
    /usr/bin/gnome-terminal -e "<command>"
    would solve this problem

  • Address Book write LDAP server command via terminal or remote desktop

    Hi folks.
    I was wondering if anyone has had any experience issuing an 'address book' setting command, to ADD an LDAP entry, via terminal or remote desktop?
    In particular, I want to "ADD" a new "LDAP" entry for a specific server, on 40 workstations, using terminal or remote desktop, so that I don't have to leave my desk
    I recall that you can issue commands from the terminal, starting with "write"... to add such preferences.
    Any thoughts, ideas, or inspiration?
    Many thanks,
    Derek

    Hi,
    As far as I know, We couldn't use Command Shell as you list to establish a Remote Desktop. You can use
    mstsc /? command to view all mstsc.exe command parameter. We can use the command
    mstsc [<connection file>] to establish a Remote Desktop Connection.
    However, why did you want use command shell to establish a Remote Desktop? It would be more convenient using
    mstsc [<connection file>] command to establish a Remote Desktop.
    If you need further assistance on this particular issue or any other Windows related issue, let us know and we will be glad to assist you.
    Roger Lu
    TechNet Community Support

  • Remote login in SM51 Fails / ECC 6.0 / HP-UX / Oracle 10

    Hi All,
    We had a cluster, 4 physical servers / 14 SAP Instances / HP-UX - Oracle 10G /  ECC 6 EHP 3.
    Basically we have a general RFC problem in the system. You can reproduce it simply in transaction sm51: In most of the instances whenever you try to change to an instance that has the same instance number than the one you are logged on at this moment, you will come back to this instance, e.g.:
    you are logged on at host1_SID_01, start sm51 and try to change to the instances:
    host2_SID_01,
    host3_SID_01 or
    host4_SID_01
    (or you try to display the system log or other). You will see (System - Status) that you don't change to these instances but will stay on host1_SID_01.
    We found the SAP Note 662895 - Remote login using SM51 Fails. In this note they refer to the error: "Transaction termination 14 025".
    Now we have this error (we upgraded from SAP 46C with another error in sm21).
    The problem is that we really donu2019t understand exactly what they want to do in the SAP Note 662895:
    Summary
    Symptom
    Remote login in SM51 by double-clicking R/3 instances fails
    Solution
    You can use transaction SM51 to log in to another application server using RFC, without entering a password. Server "A"
    Server "A"                                          Server "B"
            <--Remote logon via RFC   <--
    GUI
          sm51
    Double-click on the server B entry --->
    If host name "B" was entered on server "A" as the gw/alternative_hostnames profile parameter, the local SAP gateway from server "A" is used when you log on to server "B". This results in the syslog message "Transaction termination 14 025".
    The same error occurs if you try to open a new external mode on server "A".
    Who is the origin server? Host A? Host B? In fact sometimes you can go from A to B and vice versa. So changing the gw/alternative_hostnames parameter doesn't appear to be a solution.
    I would appreciate some tips about this Note / Problem.
    Best Regards,
    Erick Ilarraza

    Hello, thanks a lot for your replyes.
    Abhijeet Siras, the command /etc/ping <host> works prefectly.
    Sergo,
    Exactly we have 3 host each one with 4 dialog instances. 1 host with 2 dialog instances and one host with the central instance.
    Not all  instances have this problem, only the following combination:
         Origin                     Destination
    host4_SID_01    - >     host1_SID_01
    host2_SID_03    - >      host3_SID_03
    host1_SID_01    -->  host3_SID_01
    host1_SID_02   -->     host3_SID_02
    host1_SID_03   -->     host3_SID_03
    host1_SID_04   -->     host3_SID_04
    host2_SID_01   -->     host3_SID_01
    host2_SID_02  -->     host3_SID_02
    host2_SID_03  -->     host3_SID_03
    host2_SID_04  -->     host1_SID_04
    host2_SID_04  -->     host3_SID_04
    host3_SID_04  -->     host1_SID_04
    host4_SID_01  -->     host1_SID_01
    host4_SID_02  -->     host1_SID_02
    host4_SID_02  -->     host2_SID_02
    host4_SID_02  -->     host3_SID_02
    The problem is between *_NUMBER to *_NUMBER!
    For example from Dialog Instance 3 running on host 2 to Dialog Instance 3 running on host 3
    For example host4_SID_01 means the Dialog Instance 1 running on host 4.
    Best Regards,
    Erick Ilarraza

  • Is there any way to enable SSH via Terminal in the OSX Installer utility list?

    Hi guys, I've messed up my install a little on my internal HDD.. I can't boot into OSX as I keep getting kernel panics on boot. I was just wondering if there's any way I can SSH into my Mac Pro via the Terminal on the OSX Installer Utilities list.. I have a Macbook Pro to SSH from but I need a way to enable SSH via that Terminal "-bash-3.2#"..
    I've tried to use the systemsetup -setremotelogin on command but I know SSH requires login keys and as I have no idea what can be used as those keys for the OSX Installer version of Terminal I have no idea how I can enable SSH..
    Tried some sudo commands but as I guess it runs at a completely different level to sudo it won't actually recognise the sudo command..
    Any help would be greatly appreciated guys, if you need me to post any info or results to help then just let me know.
    Thanks alot
    Chris

    If your Mac cannot boot to the OS X installation then you will not be able to set up the SSH (Remote Login) sharing service. The OS X installer does not support any of the system's sharing services. Technically it does have the sshd daemon (server process) that you can set up to accept a connection; however, this will not give you any additional benefit.
    The only reason to SSH into the system would be to get to the Terminal command prompt anyway, which is available when you boot to the Recovery HD partition and choose Terminal from the Utilities menu. If you were to set up SSH and log in, you would still only have the functionality provided by the Terminal in the Utilities menu, and not have access to your Mac's full OS installation.

  • The connection was denied because the user account is not authorized for remote login

    Using Terminal Server 2008 not able to get non administrator users to login to the remote desktop. Have tried from Windows server 2008 and from Windows servers 2003. Get error login in "The connection was denied because the user account is not authorized for remote login" from Windows Server 2008. Error "The requested session access is denied" from Windows Server 2000.

    Is that seriously the only way to do this? Doesn't this render the "Allow log on through Terminal Services" GP Setting useless?
    I would like to know this answer, as well.  I have created a new AD group for my assistant admins called "Domain Admins (limited)".  I have added this group to the GP setting "Allow log on through Terminal Services", but the
    assistant admins cannot log in through RDP.  It 'feels like' this is all I would need to do.
    Craig
    Found some good info
    here. There are really two things required for a user to connect to a server via RDP. You can configure one of them via Group Policy but not the other.
    1) Allow log on through Terminal Services can be configured through Group Policy, no problem.
    2) Permissions on the RDP-listener must also be granted.  If your user is a member of the local Administrators group or the local Remote Desktop Users group then this is handled.  If you are trying to utilize a new, custom group (as I am),
    then there isn't a way to do this via group policy (that I have found).
    EDIT: Found the answer.  I am creating a blog post to outline the steps.  They aren't hard, but they're not self-explanatory.  It deals with the Restricted Groups mentioned above, but it's still automate-able using Group Policy so that you
    don't have to touch each computer.  I think the above poster (Andrey Ganev) got it right, but
    I had trouble deciphering his instructions.
    Here is my blog post that walks through this entire process, step-by-step.

  • Remote login questions

    I have an account on my parent's mac at their place which I log into occasionally via screen sharing/back to my mac. Is it possible, instead of using screen sharing, to log into my account remotely, see and use my desktop, without disrupting their session? I could be at home seeing the screen as it appears in my profile and they can be using the computer at the same time in their profile.
    I vaguely remember this being done in windows (Server 2003) by some HP network engineers I used to work with.
    I played with the remote login feature in the sharing prefpane and using ssh, but that just logged me into my user account via terminal, which I'm completely unfamiliar with.
    Both their Mac and mine are running 10.5. Is it possible?
    Thanks,
    Sean

    Is it possible, instead of using screen sharing, to log into my account remotely, see and use my desktop, without disrupting their session
    No. Mac OS X supports only a single desktop, so all GUI users see the same thing.
    There was some project that aimed to implement this through some X11 hack, but I haven't seen anything about it in a while.

  • Accessing SAP GUI via terminal services

    In my current project, it is proposed that all SAP development be done remotely via terminal services login to host machine. Does anuone have experience of this way of working? If so what problems were encountered (performance / response times?) and was this method of development successful?

    Paul,
    We did this for a short while for off hours development work and had to quit, but the reasons may be specific to us.  We are only doing ABAP development.
    1.  Support. Developers would be disconnected (for what ever reason) then when reconnect the terminal server would open another session, taking another key, and potentially loosing unsaved code.
    2.  Debugger.  The new debugger, as of ECC, really lends itself to a wide display or two screens, we were very limited to what display options we had by the terminal server (again this might be specific to the way the TS was setup here, but you might want to check)
    As I mentioned ours was for off hours support, so we setup the developers the ability to remote desktop to their desktops through VPN. 
    Good Luck.
    - Brian.

  • Script to enable remote login

    In my job I am constantly required to SSH into other computers to fix problems via terminal. Is there any known script that I can use to enable remote login on my computer quickly rather than having to go to system preferences every time?
    Thanks for your help!

    I'm not sure I understand this request.
    In my job I am constantly required to SSH into other computers to fix problems via terminal.
    OK, fair enough...
    Is there any known script that I can use to enable remote login on my computer
    Enabling SSH/remote login on your computer isn't going to help at all. You need to enable remote login on the remote computer.
    It may be possible to have an AppleScript execute commands on a remote machine, if that's what you mean, but in order for this to happen the remote machine has to have Remote Apple Events enabled. In my experience, there are even fewer machines with Remote Apple Events enabled than there are with Remote Login - it's disabled by default and is unlikely to be enabled by most users.
    So if Remote Login isn't enabled, your only solution is Remote Apple Events, but if that's off you're pretty much out of luck (unless you have some kind of screen sharing setup running).

  • New screen for remote login

    I have a Mac Mini running MediaCentral or FrontRow in fullscreen. From time to time I would like to login remotely from a Macbook to perform some tasks etc.
    Until now I use ScreenSharing or RemoteDesktop. My problem: Bot solutions share the systems live screen, so I have exit MediaCentral or FrontRow to use the system.
    I would like to login remotely and get a new screen, if possible.

    If you are comfortable enough with the Terminal, enable 'Remote Login' on the Mac Mini and login in to it with the Terminal app via SSH.

Maybe you are looking for