How to specify port when ssh to server

Hi all.
I have a server that I am configuring, and one of the steps I'm taking is to change the default ssh port from 22 to another port to elude the script kiddies.
When I ssh to the server in Terminal, I'm having issues connecting (while I don't using Putty in winblows).
I think it is because I'm not specifying the port correctly.
Does anyone here know the correct syntax in Terminal to specify a different port than 22?
I've used ":" and "[]", so I'm at a loss at the moment...

Hi--
Does anyone here know the correct syntax in Terminal
to specify a different port than 22?
<pre class="command">ssh -p 1234 [email protected]</pre>assuming you're just doing a straight login to a command-line, has always worked for me.
By the way, if you're new to the Terminal, most of the commands you'll run in the Terminal have really good man pages. Just type:
<pre class="command">man ssh</pre>to see it.
If you know what you're looking for, it's right there in the last line of the synopsis:
<pre class="command">SYNOPSIS
ssh [-1246AaCfgkNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D port]
[-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
[-p port] [-R port:host:hostport] [user@]hostname [command]
</pre>If you're not sure what you're looking for, you can often find it a bit lower down. Unfortunately, in the case of ssh, it has a long man page, so you have to go quite a bit further down to find it:
<pre class="command"> -p port
Port to connect to on the remote host. This can be specified on
a per-host basis in the configuration file.</pre>
Have fun,
charlie

Similar Messages

  • How to specify -preview when launching via AppleScript

    I have an InDesign Server CS5.5.I have a shell script that waits for xml files to be placed into a certain directory on the server. When it sees a file in the folder it launches an applescript that controls InDesign Server. I need to know how to specify the -preview option for the InDesign Server binary so the files generated by the server will have previews when they are opened in InDesign client. The apple scripts look like this:
    tell application "InDesign Server"
         -- do some stuff
    end tell
    Where/how would I specify the -preview option. I see nothing referring to the -preview option in the Library for indesign.

    There's two ways to set it:
    1) in command line when you launch the executable, there's a preview option. I don't remember off hand the exact syntax.
    2) In the script itself (using Javascript syntax -- Applescript would be similar) app.serverSettings.imagePreview = true;
    Harbs

  • How to find port number of message server

    Hi All,
       Is anyone there who could tell me how to find out port number of message server (Message Port)?  I am defining new system in my SLD so I need port number of message server of the system that I am connecting to. Thanks in advance.
       Best regards

    Hi,
    Go to the index page of the url,
    type http://hostname:http port in Internet browser.
    for ex : if installation is done on system with IP 172.16.28.90
    and your http port is 50000(depends on Central instance number,JCxx)
    then type http://172.16.28.90:50000.
    1.then go to system information tab in index page.
    for the credentials asked,type,
    user:administrator
    password:master password given during installation.
    then system information page opens,in the left corner top,you can find message server port.
    reward points if helpful.........

  • How to Specify Metadata When Adding Content Using iTunes U Web Service?

    I've been developing Java applications using iTunes U Web service and uploaded content to iTunes U site using iTunes U Web service without problem. Now I want to add metadata fields (name, artist name, album name, etc.) for the tracks I uploaded. It seems to me that "AddTrack" will do. So I tested it but it neither adds a track under the specified group nor updates metadata fields for an existing track. It turned out "MergeTrack" actually updates metadata fields for an existing track. So is there any way to specify metadata at the time of adding content using iTunes U Web service? And what exactly does AddTrack do? This is all about contents hosted by iTunes U site and no RSS is involved.
    I'm referring to the "AddTrack" method in iTunes U Web service:
    http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/iTunesUWebServices/c hapter18_section_21.html#//appleref/doc/uid/AdminGuide-CH13-SW26

    Thanks for all the replies. My question is whether there is any way to specify metadata WHEN adding content using iTunes U Web service. Specifying metadata AFTER adding content can be achieved by MergeTrack (weird naming) and it does work.
    As for setting track level meta-data in the media file and then upload it, there're several reasons against that, among which are:
    1. Some track metadata are context-dependent. A video about buildings on Michigan Ave in Chicago can be track #2 in a history course and described as "historic view of the Magnificent Mile", but the same media can also be track #5 in a landscape design course and described as something like "contemporary architecture". Setting these metadata in the media file itself is not the preferred way to do it since it implies maintaining a version of the same media for any course/group it gets uploaded to.
    2. Setting metadata in a location separate from the media file helps track the metadata change and search for media without digging into the media itself.
    3. If MergeTrack "updates" metadata, there got to be some other method that "creates" metadata - that's what a well-designed API should look like. And setting metadata in the media file is not an equivalent to a "create metadata" method call. In rickwolf's term, that implicit AddTrack should actually be made explicit so the party uploading content can explicitly specify metadata instead of having iTunes U extract metadata from the media.
    It is still not clear what "AddTrack" does exactly, maybe rickwolf is right - it's only relevant to tracks created through RSS.
    So it seems to me there is no other way to specify metadata WHEN adding content using iTunes U Web service than setting metadata in the media file. To me it is more like a design flaw.
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang

  • How to specify Attribute ID in OPC Server DevicenetExplicit

    I'm trying to set up an Allen Bradley 842D Devicenet Absolute Encoder
    using the OPC server.  The manuals for the device mention that the
    data can be retrieved from the various Attribute ID's in each
    class.  From the OPC Server Help example below,  it starts to
    describe the location of the data desired,  but fails to show me
    where I specify the attribute ID.  For example, lets say in the
    example below,  I now want Attribute 2 or 3.  How does the
    below example tell me how?.
    Since I'm trying to get all this data in via the IA OPC server, 
    I'm not planning on using the DNET Vi's.  BUT.....I did look at
    the "GetIdentityAttrs.vi" and notice that the VI's provided allow for
    Class ID, Instance ID, and Attribute ID.  All of which correctly
    gives me the information I want when I run this VI with the 842D
    encoder.
    From OPC Server Online Help:
    NIDeviceNetExplicit Example
    Suppose you want to get attribute 1 from Class ID 1, Instance 3 of an
    object. Class ID 1 is the Identity Class, where all the identification
    information for the device is contained.
    Enter the background information when you create the
    NIDeviceNetExplicit object, setting the Service Code to 14 and the
    Class ID to 1. From the manufacturer’s documentation, you know that
    GetAttribute only accepts an unsigned integer (USINT) as a parameter.
    The baud rate for the object in question is an 8-bit unsigned integer
    (USINT). To read the baud rate, access the IID3.USINT0 data member.
    From the Above,  this is what how i'm interpreting the configuration:  IID ( Instance ID).USINT (data offset)
    To re-iterate my question:  How do I specify the Attribute ID when using the IA OPC Server DeviceNetExplicit Object? 
    Regis

    Hi Regis,
    The general steps to send & receive the explicit message using the NI OPC Server:
    Configure an OPC item to write the explicit message, you have to set the attribute ID for the GET request message here.
    Configure an OPC item to read the explicit message, you will get the explicit response from it.
    Example: Read the Vendor ID (ClassID=1, InstanceID=1, AttributeID=1, DataType=UINT)
    (1) Configure the NIDeviceNetExp object with the right MAC ID, ServiceCode=14(GET), ClassID=1
    (2) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.USINT0 to write the parameter.
    (3) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.UINT0 to read the Vendor ID.
    (4) Then you get the alarm message in IA OPC server and get failure message in your OPC client , if you have one started allready, because it reads the item automatically.
    The magic action is here: you write the value 1 to NIDeviceNetExp1.IID1.USINT0. (then the attribute ID 1 is set correctly).
    You can get the vendor ID then reading NIDeviceNetExp1.IID1.UINT0.
    2. Example: If you want to get the Serial Number (ClassID=1, InstanceID=1, AttributeID=6, DataType=UDINT)
    Add an OPC item NIDeviceNetExp1.IID1.UDINT0
    You write the value 6 to NIDeviceNetExp1.IID1.USINT0
    You can get the Serial Number in NIDeviceNetExp1.IID1.UDINT0
    So you can conclude that:
    (1) if you write to NIDeviceNetExp1.IID1.USINT0, USINT is the data type used to encode the request message parameter.
    (2) if you read from NIDeviceNetExp1.IID1.UDINT0, UDINT is the data type used to decode the response message.
    Attached you can find an example using LV and  Datasocket to read the Vendor ID.
    Hope that helps with your problem.
    DirkW
    Attachments:
    DNET to OPC Item.vi ‏44 KB

  • How do you port forward for minecraft Server

    I have an Apple Time Capsule and I'm trying to host a minecraft server! I tried everything but it still doesn't work! Please help i have a macbook pro 1st gen and Version 10.6.8!

    I use an application called port map. http://www.codingmonkeys.de/portmap/  Make sure you download the landlubbers version. When you open it add a port called minecraft with the port 25565

  • How to specify delimiter when parsing the parameter list in URL

    Here is a sample URL used to call the servlet:
    http://myhost.com/servlet?param1=test1&param2=test2&param3=test3In the doGet method of my servlet, I understand I can use the getParameter method to retrieve the various parameter values:
    String p_param1 = request.getParameter("param1");
    String p_param2 = request.getParameter("param2");
    String p_param3 = request.getParameter("param3");However, what if the URL was of the form:
    http://myhost.com/servlet?param1=test1+param2=test2+param3=test3where the URL parameter delimiter was a plus sign rather than an ampersand (&).
    By default, the servlet is only recognizing the ampersand (&) as a parameter delimiter.
    When I use a plus sign as the delimiter, getParameter retrieves everything after the question mark (?) as the first parameter
    i.e. param1 = test1 param2=test2 param3=test3
    param2 = null
    param3 = null
    How can I get getParameter to recognize a plus sign (+) as a valid delimiter?

    Servlets follow the HTTP specification. So, there is not much you can do on that level. What you could do (though I do not recommend it) is to set-up a filter that will automatically swap the plus with an ampersand before the actual servlet processes it. My strong advice, however, is to give up on using a nonstandard delimiter.
    [http://java.sun.com/products/servlet/Filters.html]
    - Saish

  • How is the impact when a sql server cluster instance failover to a downlevel version node?

    Hi,
    I have a one instance two nodes sql 2012 cluster, node1's sql 2012 version is 11.0.5522, node2's sql 2012 version is 11.0.3000, node1 is active.
    When sql server failover from node1 to node2, it succeed. I want to konw if this downlevel failover  impact database (data or usage)?
    Many thanks.

    I would not say this as a correct configuration although you can do it. Downside is suppose node 1 which is on higer version has some bug fixed with patch when you failover to lower version that bug might re surface. I have never used nodes with different
    version nor i recommend.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • How to specify target when using RequestDispatcher !

    Can anybody tell me where do i specify target while using requestDispatcher ?

    I belive that what you want is @
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getRequestDispatcher(java.lang.String)
    Best of luck.

  • How to use Port to make a connection between Import Server and Source

    Hi guys,
    I wanna make a Import Server and Manager work with a MDM Repository and a Client System. I want the Import Server could listen the port, whenever the Client System want to sent some files to the Import Server, the Server could automatically import files.
    I know how to import a file by hand, but how to make it automatical? Use Port in Type?
    Regards
    Wang Yu
    Message was edited by: Yu Wang

    Hi,
    You can automate the Import or Syndication process using Ports.
    <b>Requirements:</b>
    1. Import Server need to be Installed.
    2. Client Systems need to be defined for the repository.
    3. Create the Port with type Inbound (for Import process). OutBound (for Syndication process)
    4. Associate a predefined map with the Port.
    <b>Note:</b>
    Each port is associated with only one map.
    While creating the ports, When you select the client system, it only populates the maps defined for that client system.
    Make sure if you want to use the same client system for both import and syndication.
      Specify the Client system type as "Inbound/Outbound"
    <b>Steps involved:</b>
    Using MDM Console, In the repository Admin section
    1. Select Client Systems-> this is where you have to define the Client Systems , which you are going to use for the ports.
    Make sure you have define the Import Maps for the specific repository,specific Client System using Import Manager.
    2. Select Ports->This is where you create Port and other related information related to it.
    Once the Port is created, You see a specific directory structure created in the MDM Server installation directory
    <<MDM Server Install_Dir>> ->Distributions -> <<DBMSHOST_DBMS_TYPE>> -> <<Repository Name>> ->
    <<Port Type>> -> <<Client System ID>> ->
    <<Port Code>>
    Under the above sturcture it will have the following directories
    -> Ready
    -> Archive
    -> Status
    -> Log
    <i><b>Ready Folder :</b></i>
    -> In Import Process the import Server will pick up the file from this directory based on the specifc interval you specify in mdis.ini file(This can be found in Import Server installation directory).
    <b><i>Archive Folder:</i></b>
    -> Once the file is picked by the Import Server from Ready folder and if it is processed then the file will be moved to this di
    rectory with some date stamp suffixed.
    <b><i>Log Folder:</i></b>
    ->Log information for that process
    <b><i>Status Folder:</i></b>
    ->Status of process will be kept in this folder.
    Hope this helps.
    Thanks and Regards
    Subbu

  • How do I get connected to a server on my network via an IP address?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    Some of the following is going to use some technical terms — this area is inherently somewhat technical. 
    If you don't understand some part of the following reply, please ask.
    Is this your own OS X Server system on your own network, or is this some other server within some larger organization? 
    You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
    If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured.   This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
    If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
    The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
    http://10.20.30.40
    UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share.  That's used if you're connecting to an Apple storage service somewhere on your network.  You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server.  (There can be additional requirements for connecting to Windows Server systems, too.)
    If there's local IT staff available here, please contact them for assistance.  If these are your own local systems and your own local OS X Server system, then some information on the server will be needed.  (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.)

  • How to specify term file when using static html to run webforms 10g

    I'm using static HTML to run forms
    document.writeln('<PARAM NAME="serverArgs" ');
    document.writeln(' VALUE="escapeParams=true module=genoa.fmx userid= sso_userid=%20 sso_formsid= sso_subDN= sso_usrDN= debug=no host= port= term=/forms90/hsd65html/genoa.res"> ');
    I'm specifying the term as term=/forms90/hsd65html/genoa.res.
    During forms startup I get the message unable to read the file. I can bwoense the file by http://server/forms90/hsd65html/genoa.res
    Any idea how to specify the term file in static html.
    Thanks

    term is not a http address, but a directory address. So, you have to specify the path on the server:
    term=c:\oracle\forms90\.....

  • How to specify when the authorization check is to be performed

    How to specify when the authorization check is to be performed declratiely for
    any webapplication.
    There is Direction object argument as part isAccessAllowed method of AccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE. Ijust
    wana know how can we declaratively set this direction value for any Web Resource
    in weblogic server 8.1 security
    -Subhash

    "Subhash Chopra" <[email protected]> wrote in message
    news:3e9c5805$[email protected]..
    >
    How to specify when the authorization check is to be performed declratielyfor
    any webapplication.
    There is Direction object argument as part isAccessAllowed method ofAccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE.Ijust
    wana know how can we declaratively set this direction value for any WebResource
    in weblogic server 8.1 security
    The containers always call the isAccessAllowed method with no direction so
    Once is passed
    to the providers. There is no way to set the direction that the containers
    use.
    -Subhash

  • How to specify Host Server for Replicated Virtual Desktops within RDVH Collection

    My question about how to specify Host Server for Replicated Virtual Desktops within Collection.
    I know there is a aswered thread on this, but that solution (wait a week) didn't work for me.
    So i have 2 servers, RDS01 and RDS02 with both 15 Hyper-V VM's and replicating to eachother. That part works fine.
    Now I wanted to make it easy for my users I build a Connection Broker: RDCB
    All went fine in that setup, but when I want to add the existing VM's from RDS01 and RDS02 to the collection it just radomly adds running ones and replicated ones.
    So both RDS01 and RDS02 have 15 VM's running and 15 replica's in stopped state, but when I look in my collection, it says RDS01 has 23 and RDS02 has 7 VM's. When I add them all, I see he wants to add a lot of stopped states replica's from RDS01 instead of
    the running ones from RDS02.
    How can I specify which one he should use? Or need I disable replication first, setup the whole RDCB collection thing, and then turn replication back on? Or does Hyper-V replication not work at all when used in a collection?
    I hope someone can help out here. I'm googling and trying for 1,5 week now, but i can;t get it right.
    Thanks in advance.

    Hi Robin,
    Thanks for your patience.
    After you removed Replication from 1 machine on both RDS01 and RDS02, please restart that machine. After that, please add this machine to the RD collection again to test how the issue goes.
    As we know, Hyper-V Replica provides asynchronous replication of Hyper-V virtual machines between two hosting servers. It is simple to configure and does not require either shared storage or any particular storage hardware. Any server workload that can be
    virtualized in Hyper-V can be replicated. Replication works over any ordinary IP-based network, and the replicated data can be encrypted during transmission. Hyper-V Replica works with standalone servers, failover clusters, or a mixture of both. The servers
    can be physically co-located or widely separated geographically. The physical servers do not need to be in the same domain, or even joined to any domain at all.
    Currently, would you please add only running state VMs to the RD CB collection? And would you please capture some screenshots of the error message? Thanks very much for your cooperation.
    Best regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Don't know how to specify a digital input or output with Port Config

    I am trying to modify an existing VI that I did not write. I have a 6533 DAQ board connected to a relay box. I would like to use one of the lines on port 0 of the DAQ as an input (it will be a switch used to trigger the sequence of outputs). the rest of the lines I would like to be outputs. I don't know how to specify which line is an input and which is an output. I am using LabVIEW 5.1 and the current VI just contains a sequence of delays and pulse width for each channel. It uses Port Config to specify the port and line directions. Only it's set so that all of the lines are outputs. Does anyone know an easy way of using one input to control several outputs from the same port?

    Thanks.. that is what I thought but I didn't see any examples with the line direction map set up like that. SO.. now I'm stuck on how to use that input to trigger the outputs on the same port. I need to use the input as a switch to activate a sequence using the outputs. So first.. how to I single out just the input line to be used for the trigger. Normally when I need to do something like this I'm referring to channels and not Port lines. Also, how do I language the switch? Is the input going to be normally binary? 0 for off and 1 for on? So should I use a boolean statement?
    Thanks again for the help.. my boss doesn't know much about the programming either so I have to figure it out.

Maybe you are looking for

  • How to get Preview to be Safari's default PDF viewer

    I mistakenly downloaded Adobe Acrobat Reader, after being advised by a state tax website.  I wish I had first tested my existing configuration because Safari/Preview had always worked just fine for viewing PDF (with the Feds!), but I didn't.  Adobe A

  • I can't print a label for my burned CD with the new ITunes format

    Where can I find a place on the new ITunes format to print a CD Label?

  • What do I do after installing OCS single-box Windows?

    hi. here is my environment Windows2000Server, OCS single-box R1 I will use Oracle Calendar , Oracle Files and Oracle9iAS Portal I'm not going to use Oracle Email. I've installed single-box R1 successfully. but I coudln't start Unified Message Service

  • Pro C with 11gR2

    Hi all, Kindly explain me how to install 11gR2 with Pro C precompailer,, Where i have to download this compailer and how to install this.. Kindly adcvice me Regards Hamid Kindly tell me where do i get the Pro C Pre compailer Software Edited by: Hamee

  • Volume Header & Kernel Panic - Related??

    Hello! I am a fairly new Apple user and my Intel iMac has been running great - so these two seemingly unrelated issues that suddenly popped up this week have me a little panicked, so please bare with me :P This is what happened, in order, and my main