How to open a non-default port for sftp?

My MacMini at work used to listen on port 12345 for sFTP for close to 9 months but then something (probably a power cut...) messed all things Remote up with the office setup. So I tried to reset things. It didn't work. What do you think I'm doing wrong? The MacMini is running Tiger (10.4.10). Here's what I've done so far:
1. Drilled a hole for port 12345 on my Thomson (Alcatel SpeedTouch 780) modem/router, and disabled its Firewall and Parental Controls;
2. In System Prefs>Sharing>Firewall I have enabled the Firewall after making sure I've added a service for port 12345;
3. Also in System Prefs I've enabled Remote Login, to make sure the sftp daemon is running;
4. Back on the Thomson modem/router, I've set up a service to forward port 12345 of the router to port 12345 of my MacMini (I selected it by clicking on its MAC address in the appropriate drop down menu in the modem/router config page).
STILL: when I try to sftp to my MacMini from outside the office, I get a timeout error. Back at the MacMini, I run Network Utility and ask it to check at IP (the MacMini IP) for ports 12345 to 12345, and it doesn't report it as 'open' (it does for port 22).
I am bummed. What am I missing? I am also 100 miles away from the office on any given day, so it's not exactly easy to pop over and try various troubleshooting things. I have to kill this once and for all next I'm at the office, some time in the weekend!
As always, thanks, people.
< Edited by Host >

It sounds to me like the port forwarding is setup, so that's not the issue.
The issue is how to change sshd to listen on port 12345 rather than port 22. However, I'm not sure that you need to.
If you're trying to hide your server from the public, why not just setup your port forwarding to forward publicIP:12345 to privateIP:22.
That way you connect to port 12345 from your remote location, but don't have to change the server configuration at all.
The only reason why this wouldn't work would be if your router doesn't support different internal and external ports (e.g. it always maps to the same internal port number).
If that's the case then you need to change launchd to listen on port 12345. How you do that depends on whether you want to move the entire SSH service to port 12345, or whether you want SSH to support 22 and 12345 at the same time.
If the former, just edit /System/Library/LaunchDaemons/ssh.plist and change the lines:
<key>SockServiceName</key>
<string>ssh</string>
to:
<key>SockServiceName</key>
<string>italk</string>
(italk is the registered service for port 12345).
Then either reboot or unload/reload the ssh.plist to make the change active.
If you want ssh to run on both port 22 and 12345 then you should copy /System/Library/LaunchDaemons/ssh.plist to /Library/LaunchDaemons/ssh-12345.plist then make three changes to the new .plist file:
First, change the <Label> parameter to something unique (i.e. not 'com.openssh.sshd').
Second, remove the <Bonjour> array
Third, edit the SockServiceName as indicated above.
Once you've done that, reboot and you should be set.

Similar Messages

  • SSRS 2012 MP (Native) - Bug with non-default port on SSRS DB, Does not discover

    We have test changing SSRS DB instance to default port 1433 and discovery is immediate in SSRS MP. When using non-default port, discovery fails, SSRS instance role is never identified.
    Our SSRS is separated into app and db tires across two servers. Have tried creating sql network aliases, but this does not work either.
    In our environment, we use non-default port for our SQL DB instances. how do we get SSRS to discover.
    Thanks in advance,
    Rois Cordova

    The Monitoring Pack for Microsoft SQL Server 2012 Reporting Services automatically discovers instances of SSRS 2012 by reading registry.
    When the Monitoring Pack for Microsoft SQL Server 2012 Reporting Services is imported for the first time, it creates three new Run As profiles:
    • Microsoft SQL Server 2012 Reporting Services Discovery Run As Profile
    • Microsoft SQL Server 2012 Reporting Services Monitoring Run As Profile
    • Microsoft SQL Server 2012 Reporting Services SCOM SDK Discovery Run As Profile
    By default, all discoveries, monitors and rules defined in the SQL Server 2012 Reporting Services management pack use accounts defined in the “Default Action Account”
    Run As profile. If the default action account for a given system does not have the necessary permissions to discover or monitor the instance of SQL Server 2012 Reporting Services, then those systems can be bound to more specific credentials in the
    “Microsoft SQL Server 2012 Reporting Services …” Run As profiles, which do have access.
    It s recommend that you should check the default action account permission.
    Roger

  • How do I set the default folder for file - open file... ?

    When I save a file, photo, etc., the default folder for OPENING a file becomes the last folder I SAVED to - even after closing and reopening Firefox. Is there a way to maintain the same default folder for opening files?
    Thanks.

    Originally posted by: kwarner.uneedspeed.net
    Well... I found over 200 bugs none of which seemed to talk about setting
    the default folder. I probably missed the relevant bug in the spew.
    I ask a question here as a last resort -- after I've done what I think
    is an appropriate search for answers.
    But thanks for your help in any case.
    Daniel Megert wrote:
    > DemonDuck wrote:
    >
    >> When I need to open a file not in the workspace, I use File -> Open File.
    >>
    >> But the default folder it opens is in C:\Documents and
    >> Setting\Administrator
    >>
    >> I would like File -> Open File to first open in someplace more
    >> reasonable -- like the workspace.
    >>
    >> How do I set the default folder for File -> Open File ????
    >
    >
    > Is your '?' key broken? Check bugzilla there's a feature request
    > regarding your question.
    >
    > Dani

  • How to establish user equvalance between 2 rac nodes on non default ports??

    Hi Friends,
    Please shed some light on how to establish user equvalance between 2 rac nodes on non default ports such as ssh on 22...
    i want to establish user equvalance on other ports..
    Thanks
    RB

    R12DBA wrote:
    Hi Friends,
    Please shed some light on how to establish user equvalance between 2 rac nodes on non default ports such as ssh on 22...
    i want to establish user equvalance on other ports..
    Thanks
    RBHi RB ,
    22 is default port for ssh. For configuring
    http://yasarmoran.wordpress.com/2010/06/12/configuring-ssh-on-oracle-rac-nodes/
    For non default port , first of all you need to configure ssh on new port . For that refer :
    http://www.itworld.com/nls_unixssh0500506

  • How to use non default port 1521 while 11.2.0.1 grid upgrade to 11.2.0.2

    Hi Team ,
    We are planning 11.2.0.1 Grid infra rolling upgrade to 11.2.0.2 with out any downtime.
    But while up gradation due to default scan port 1521 , 11.2.0.1 databases are not able to connect (remote connections)
    We are using 1900 port for existing 11.2.0.1 grid infra scan.
    While up gradation it is taking default port of 1521 insted of existing port 1900.
    Please provide the solution to use non default port while 11.2.0.2 up gradation.
    After upgrade the status as below.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    Here I was getting TNS:no Listener errors from the client connections.
    I have modifyed the scan port then it is working fine.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl modify scan_listener -p TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4>
    Here the problem is we need to do the grid infra upgrade with out downtime,but due this default port issue clients are not able to connect to the database.
    Thanks
    Bala
    Edited by: user12032334 on May 31, 2011 11:46 AM

    Why are you using a non default port? It does not improve security. It makes network management more complex. And causes the type of issues that you are facing now.
    So before changing defaults, make sure that your reasons are technically sound. And using port 1900 when 1521 is available, is not technically sound by any means.
    As for addressing the problem you have created for yourself by mucking around with port numbers. Use a NAT firewall (on each RAC node) to rewrite packets headers received on port 1900 and send these to the server's port 1521 instead (on the VIP or static IP as required).
    This can be fairly easily done using iptables if your o/s is Linux. You need to:
    a) create a pre-routing NAT rule
    b) create a post-routing NAT rule
    c) create a forwarding filter rule for port 1900/tcp
    d) create an input filter rule to accept traffic on 1900/tcp

  • How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.

    How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.  I see how to change the size after the document is open by going to File/properties/initial view and saving this setting.  I want all documents to open at 100% when they are first opened.  Can I set this as a default view?

    Hey Kris,
    You might go to Edit> Preferences> Zoom
    Do this without opening any particular PDF so that it applies to the program itself and not just one document.
    Try this and then let me know.
    Regards,
    Anubha

  • How do I change the default text for when I open up pages?

    How do I change the default text for when I open up pages?

    Colin,
    You may substitute any text you like for the "Placeholder Text", as it is called, in Pages. Click on the existing placeholder text and type something more to your liking. Do this in as many places as your particular template of interest demands. Then, Format > Advanced > Define as Placeholder Text. Lastly, File > Save as Template.
    Now that you have defined a Custom Template to your liking, you can go to Pages Preferences and under the General tab's first section, define the new custom template as your default for each new document.
    Regards,
    Jerry

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • Default port for J2SE Adapter Engine?

    Hello all,
    what is the default port for J2SE Adapter Engine? How do I restart this adapter engine?
    Regards,
    N.S

    Swamy,
    8200 is the default port. Also go through this help of how to start and stop the J2SE Adapter Engine:
    http://help.sap.com/saphelp_nw04/helpdata/en/12/5dd23aaad7b3408dde3c1577fda5b3/frameset.htm
    ---Satish

  • I have two libraries within iPhoto, however can't find or open the non-default library and can't find a way to even locate the non-default library.

    My iPhoto software got set up with two separate libraries of photos, one marked as default.  I have saved photos to the non-default library, however now can't seem to find a way to open the non-default library.  Every once in a while when I open iPhoto it will ask me, but usually it just opens the default library.  How can I open the non-dafult library of photos?

    When you launch iPhoto with the option key depressed you'll get this window:
    Click to view full size
    All libraries on your hard drive (and on external drives) will be listed and the currently used library will be listed as (default).
    OT

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Do we have any default port for XI?

    Hi All,
    Could you please tell me how to check whether XI is installed or not?
    Do we have any default port for XI?
    Regards
    Sara
    Message was edited by:
            Sara D

    Hi,
    >>>>>1. Is it necessary to keep both XI and SAP Logon in the same system?
    XI consists of two stacks - java and abap
    so to access XI you also need sapgui
    otherwise you won't be able o use XI
    >>>>2. Do we have any other alternative to find out the port?
    a) ask someone who installed this system
    b) if you know the system number of your XI
    then you can try: http://xiserver:5XX00
    where XX is the system number of XI
    Regards,
    michal

  • How do I change the default zoom for New Tab only?

    The New Tab zoom in Firefox 33 is too high to see all 12 of my thumbnails. I changed it using ctrl- but the next time I opened a New Tab, the zoom was back at 100%. How do I change the default zoom for New Tab only?

    cor-el, what am I looking for in '''content-prefs.sqlite'''?

  • How do I modify the default account for events in iCal?

    I have several email accounts (for biz&home) and I want to use them, depending on the event, as the account from where an invitation from iCal is sent. So if a have a football game with friends, I want to use my personal account when sending an iCal event. But when I want to make a biz meeting, I want to use my work account in that invitation. How or where can I make these selections/options appear? Is it possible?
    If not, how can I set the default account for invitations in iCal? (I already have a "default" account in Mail, but iCal is not using that account for invitations).
    Any help is appreciated

    Hi salazar2,
    Been dealing with a similar issue for about 3 years now, so I know your pain. I founded a company in 2009 called Zamain that is focused on making Mac calendaring more productive. Our first product, Zamain for Mac, solves your problem as well as Apple iCal to Microsoft Outlook/Exchange incompatibilities. The current version includes the following features:
    * Sends iCal invitations that Outlook users can actually open
    * Sends invitations from any email account
    * Lets you add comments to invitation replies
    * Makes timezones actually work
    * Prevents weird attachments from appearing in your invitation emails
    Although I know that this is a shameless plug for my product, I urge you to give it a try because it will really make your life easier. We have a happy user base, are actively developing new solutions, and are always open to suggestions.
    You can get Zamain for Mac at www.zamain.com.
    Thanks!
    -Jon
    As per the terms of agreement, I must disclose that I may receive some form of compensation, financial or otherwise, from my recommendation or link above.

  • How can we change the default port 50000 of SAP WAS?

    Hi,
    1. How can we change the default port 50000 of SAP WAS?. Can we assign 8080?
    2. Can we assign default context ("/") for the application we have developed?
    Regards,
    Sudheesh

    Hi Sudheesh,
    just refer this help..
    http://help.sap.com/saphelp_nw04/helpdata/en/5b/82d3c3ee9691418e6b0281f933a37d/frameset.htm
    U have to restart the sever after changing the port.
    One more main thing here , no other services must not be using the port.
    It will cause port binding exception.
                  Regards
                  Kishor Gopinathan

Maybe you are looking for

  • The Web application could not be found

    Hello, I have a machine that has s share point portal . I create WCF on the same machine and set it on IIS and the identity of application pool is the administrator of machine            PlatformTarget : 64 bit ,  Framework : .net 4.5 I have added sh

  • Questions to a Mapping for IDOC-to-File Scenario

    Hi all, I want do develop a Message-Mapping for an IDOC-to-File Scenario. A SAP System sends an IDOC to the XI-System and the XI-System should make a mapping an send a XML-File to a FTP-Server. The Strukture of the target message is very easy: <xdoc>

  • How can I add customer partner function entries in LSMW?

    I am using SAP ECC 6.0 with best practices installed. I am able to create sold-to customers using the batch input program RFBIDE00.  When I try to add partner function entries using structure BKNVP, it appears that the partner ID stored in KTONR is n

  • Apple TV Artwork bug?

    Hi Folks, hope you all keeping well. Looking at some general discussion on the web is there or is anyone else experiencing an artwork "bug" with their Apple TV?  I have iTunes Match etc enabled and all the artists, albums etc all show up and will str

  • Workflow & OWB Control Center

    Previously; I have been using control center with no problems; i.e. I would run/execute mapping directly. I've attempted to install Workflow 2.6.4 With DB 10g R2 (10.2.0.1); Everything seemd to go ok; today I have tried to open control center and now