Terminal SSH question

Hi, i'm trying to SSH into my ATV2 in order to install xbmc.
In my efforts, i managed to muck up my ssh commands in terminal.
when i try to log in to root, i get;
/Users//.ssh/config: line 2: Bad configuration option: as;ldfkj
/Users//.ssh/config: line 3: Bad configuration option: j;ljk
/Users//.ssh/config: line 4: Bad configuration option: ls
/Users//.ssh/config: terminating, 3 bad configuration options
What command do i need to type in order to clear out those configuration options?
thanks in advance!!

Edit: I just looked at the original post again, because I was wondering how SSH could be of any use to someone who doesn't understand the shell, and I realized that you're asking for help in hacking a jailbroken AppleTV. This isn't the place for that. Go back to the site where you found the hack and ask your question there.

Similar Messages

  • SFTP and SSH question.

    Currently I have a headless OS X Client running Crush FTP over SSH (SFTP) for our work SFTP server this is separate from our main OS X G5 server box.
    I can't seem to SSH into the SFTP server via the terminal in order to manage it an poke around like I do with our server.
    I am about to setup a little OS X server at home and want SFTP access from it, as I can't justify a seperate box, but I also want to be able to SSH into the box from the outside world too.
    I am firstly wondering what the issue is with my Crush FTP server as to wether I will experience the same problem at home.
    The 2nd question is can OS X run FTP over SSH (SFTP) with the built in server admin tools and if so is it as easy as Crush FTP to manage?
    I will be using ACL's so I guess I could restrict access down that way.
    Thoughts, comments, suggestions and explanations very much welcome as I can't find much to answer the above.

    Hi: Port 115 is generally used for SimpleFTP. SecureFTP or FTPS uses port 989 and 990. This might help.
    Tony

  • Terminal SSH not connecting?

    Forgive me if this isn't the best place for this question, but it's mostly Greek to me. I've been able to log into my remote server using the "ssh [email protected]" command from Terminal. Within moments I get the "password" prompt and all is well.
    Recently, something is choking and I have no clue where to start looking. I type the ssh command and nothing happens for a minute or two, and then there's the message "Connection closed by nn.nnn.nnn.nnn" (the IP address). Blammo.
    The verbose log follows. Any clues? Thanks to all in advance.
    ==========
    Last login: Fri Feb 22 21:31:00 on ttyp1
    Welcome to Darwin!
    [MyComputer:~] shortname% ssh [email protected] -v
    OpenSSH_4.5p1, OpenSSL 0.9.7l 28 Sep 2006
    debug1: Reading configuration data /etc/ssh_config
    debug1: Connecting to domain.com [nn.nnn.nnn.nnn] port 22.
    debug1: Connection established.
    debug1: identity file /Users/shortname/.ssh/identity type -1
    debug1: identity file /Users/shortname/.ssh/id_rsa type -1
    debug1: identity file /Users/shortname/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1 FreeBSD-20030924
    debug1: match: OpenSSH_3.5p1 FreeBSD-20030924 pat OpenSSH_3.*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.5
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    debug1: SSH2MSG_KEX_DH_GEXINIT sent
    debug1: expecting SSH2MSG_KEX_DH_GEXREPLY
    debug1: Host 'domain.com' is known and matches the DSA host key.
    debug1: Found key in /Users/shortname/.ssh/known_hosts:2
    debug1: sshdssverify: signature correct
    debug1: SSH2MSGNEWKEYS sent
    debug1: expecting SSH2MSGNEWKEYS
    debug1: SSH2MSGNEWKEYS received
    debug1: SSH2MSG_SERVICEREQUEST sent
    debug1: SSH2MSG_SERVICEACCEPT received
    Connection closed by nn.nnn.nnn.nnn
    [MyComputer:~] shortname%

    Tried that, it asked me to establish the authenticity of the host, I said yes, it added the domain to the list of known hosts - and then nothing again. Got the "connection closed by the host" message after a minute or two.
    I tried something different, and sent "ssh [email protected]" (where 'othername' is a site owned by a friend) and it promptly asked for the password (which I don't know so I logged off Terminal). Is it possible the hangup is at my host? I can access all the features of my site normally - I just can't log in via ssh via either root or ftp.

  • How can i automate a set of terminal ssh commands to a clickable icon?

    hi everyone,
    i have set up an old mac mini as a headless server with my usb external harddrive connected to it, and with file sharing and ssh enabled.
    on the same network from my macbook, i wish to be able to eject the external harddrive so that i can take the harddrive with me but leave the mac mini running.
    i consider myself very competent with computers, but not to the level of coding and scripting. the macbook is running 10.7.4 and the mac mini 10.4.11
    with the help of google, thus far, i have been able to figure out what to type into terminal on the macbook in order to achieve the desired result of ejecting the harddrive from the mac mini....
    ssh [email protected]
    (wait for the password prompt and then enter the password (Admin, same as username).
    diskutil unmountDisk /dev/disk1
    This works, however it's a laborious process to go through for something I will want to do fairly regularly and quickly.
    Is there an easy way to consolodate this process into an icon i can just run from my dock, which will automatically run this code and enter the password? i have looked into writing the code into a "shell script" but could not figure out how to get it to enter the password or how to make it executable.
    i would appreciate any advice! thankyou

    This is what I did... it is quick and dirty!
    1 exported the app "Project"
    2 imported the app "project" and renamed it "project2". Doing this means that I won't cause any damage to his current application
    3 examined authentication- currently set to Application Express. Application Express requires that the user and passwords match account created in the admin section of application express.
    4 We're after a scheme that authorises based on a table of users in the application workspace schema. The authentication scheme just needs to know the name of a function which has a standard signiture such as fn_auth(p_username varchar2, p_password varchar2) return boolean;
    In the SQL Workshop I looked at the "user" table to be used and noticed that it does not contain a loginname column so for this example based this on a case insensitive first name and last name concatenation (with a space in the middle).
    Now we need to add a simple authenticate function...
    create or replace fn_auth (p_username varchar2, p_password varchar2) return boolean is
    begin
    for x in(select 1 from student where upper(trim(first_name' 'family_name))=upper(p_username) and upper(password)=p_password) loop
    return true;
    end loop;
    return false;
    end;
    5 And finally modify the app to use this new function. Add a new scheme and in the Login Processing section of the ahthentication scheme modify the function to
    return fn_auth
    6 As an aside, I also added a report of user names and their passwords which is shown on page 101 if the user is running in debug mode. Obviously, this would need to be stripped out when the app was released to production. This will not show if the URL is navigated to and the user is not logged in as an APEX developer by using a condition based on a funtion body and the following to determine whether the app is being run for a user or for a developer:
    IF APEX_Application.g_edit_cookie_session_id IS NOT NULL THEN return true;
    ELSE
    return false;
    END IF;

  • Workflow Termination Notification Question

    I have a question regarding termination notification workflow. I am trying to create termination notifications for a server and I have to verify both worklist and email notification.
    I have checked the Set Up HRMS > Common Definitions > Self Service->Workflow Configuration and Personnel administrator role is assigned for Terminate Employee workflow. Also, in PeopleTools > Security > Roles & Permissions I have an user assigned to this role.
    In Worklist->Worklist, I only see the termination action created through Manager Self Service->Job and Personal Information->Terminate Employee and not the one using Workflow Administration->Job Information->Job Data. Also, no email is received.
    Could you give me a hint regarding this problem?

    Does anyone out there at Microsoft have accurate answers to these questions?
    Thanks!EM

  • Terminal FTP questions

    I have successfully been able to connect to my server using terminal. So far I can change dir., create dir. and get files. The problem I am haviung is that I cannot put files to the server from anywhere on my computer, actually to better describe this is the error message I get:
    ftp> put /Users/myUserName/Desktop/sample1.php
    local: /Users/myUserName/Desktop/sample1.php remote: /Users/myUserName/Desktop/sample1.php
    500 Unknown command
    227 Entering Passive Mode (72,22,69,91,32,22)
    553-Can't open that file: No such file or directory
    553 Rename/move failure: No such file or directory
    ftp>
    FYI: my password and username are accepted
    second question/s: when should I use binary and when should I use ascii? do i just use ascii for '.txt' files and the rest use binary?

    I have successfully been able to connect to my server
    using terminal. So far I can change dir., create dir.
    and get files. The problem I am haviung is that I
    cannot put files to the server from anywhere on my
    computer, actually to better describe this is the
    error message I get:
    ftp> put /Users/myUserName/Desktop/sample1.php
    local: /Users/myUserName/Desktop/sample1.php remote:
    /Users/myUserName/Desktop/sample1.php
    500 Unknown command
    227 Entering Passive Mode (72,22,69,91,32,22)
    553-Can't open that file: No such file or directory
    553 Rename/move failure: No such file or directory
    ftp>
    FYI: my password and username are accepted
    Hmmm. What kind of computer is your server? It looks like ftp is trying to upload the file using your local path on the remote server. There are two ways to get to the local directory. First, you could just change to that directory:
    <pre class="command">cd /Users/myUserName/Desktop</pre>
    to use your example. Second, you can use the lcd command once you're in the ftp program:
    second question/s: when should I use binary and when
    should I use ascii? do i just use ascii for '.txt'
    files and the rest use binary?
    <pre class="command">ftp> lcd /Users/myUserName/Desktop
    Local directory now /Users/myUserName/Desktop</pre>
    Secondly, you should navigate to the proper directory on the remote machine using the cd and ls ftp commands. For example, suppose the server is a Linux server, and your web page goes in a public_html folder. When you log in, you might be at the root level of your account:
    <pre class="command">ftp> ls
    drwxr-xr-x 2 usrname group 4096 Jun 3 08:00 public_html
    drwxr-xr-x 2 usrname group 4096 Mar 22 16:47 bin
    ftp> cd public_html
    250 CWD command successful</pre>
    Then you can just put the file on the server:
    <pre class="command">ftp> put sample1.php</pre>
    And not have to bother with figuring out the relative paths on both sides.
    charlie

  • Terminal SSH commands

    Hi,
    I am experimenting with SSH using Terminal on Leopard. I have logged in to my remote server and have made changes to /etc/localdomains however I have no clue on how to save the changes. I tried 'command + S' but that saves it to local machine as a text file. Can you advice what command I need to use? Your help is much appreciated. thanks.

    I don't see how anybody could find textedit faster than vi if you're familiar with vi. Your hands never have to leave the keyboard. If you're going to be doing much development on the Unix side it's well worth learning vi.

  • How do you change Terminal ssh port setting?

    My ISP changed its ssh port from 22 to 100. I've tried to change it in Terminal but it stays at 22. I opened etc/ssh_config as administrator, changed it there and saved the change, but it stays at 22. Any help would be much appreciated.

    My ISP changed its ssh port from 22 to 100. I've tried to change it in Terminal but it stays at 22.
    I just want to clarify which side's ssh port has changed to 100.
    Do you ssh into a server at your ISP and your ISP has changed their ssh daemon's port to 100, and now you need to know how to ssh to port 100?
    ssh -p 100 ...
    You can add an entry to *$HOME/.ssh/config* like the following:
    Host your.ips.server
    Port 100
    What this should do, is any ssh to that DNS name or IP address will go to port 100, all other ssh connections will go to port 22
    NOTE: the $HOME/.ssh directory needs specific restrictive permissions. See the ssh man page for what permissions.
    If you mean something else about "...its ssh port from 22 to 100...", then I would need more clarification.

  • Terminal SSH

    I am using terminal to ssh into a server I am running. Is there any way to ssh in on a different port such as 2995?
    Right now I type: ssh root@IP (hit return)
    Type password here
    What would I have to type in order to log in on port 2995?
    Thanks, jkapple

    Thank you. Worked perfectly.
    jkapple

  • LMS 3.2 doesn't terminated SSH sessions on ACE

    Hi all,
    the customer has a problem with LMS 3.2. This software doesn't terminate ssh sessions created by LMS on ACE. All ssh sessions still exist on ACE, so no new  ssh session can be created until the administrator manually clear these session on ACE. Thank you for your advice.
    Roman

    Hi Gaganjeet,
    thank you very much for your reply. But I think, that this problem is with LMS, because I used some manually created SSH sessions on ACE an these sessions was terminated correctly. I'm sending you the output from one ACE module:
    ace1/Admin# sho ssh session-info
    Session ID     Remote Host         Active Time        
    789            10.210.40.41:24389   280: 2:14          
    3946           10.210.40.41:37910   160:47:13          
    7394           10.210.40.41:46981   256:46:54          
    11129          10.210.40.41:11010   136:46:43          
    11651          10.210.40.41:11295   136:40:53          
    14651          10.210.40.41:20522   232:46:45          
    15143          10.210.40.41:20759   232:42:26          
    18317          10.210.40.41:32636   112:47: 5          
    19061          10.210.40.41:35109   112: 2:25          
    19152          10.210.40.41:35240   112: 0:20          
    21886          10.210.40.41:42629   208:47: 1          
    22383          10.210.40.41:42839   208:43:14          
    25713          10.210.40.41:7305    88:47: 4           
    28996          10.210.40.41:48379   400:47: 8          
    29105          10.210.40.41:16016   184:47:16          
    29579          10.210.40.41:16193   184:44:15         
    You can see that there are a lot of ssh sessions from LMS (10.210.40.41) with the long active time.:-(
    Best regards
    Roman

  • Terminal SSH Error

    I recently posted, this question in the SL category, and moved when I was told I posted it in the wrong place. So, when I execute:
    ssh Denny [email protected]
    I get the following error in return:
    ssh: Could not resolve hostname Denny nor servname provided or not known
    I then executed:
    echo $USER
    And got the following readout:
    Denny L
    What is the problem?

    For future reference, is posting the account names or computer
    name a good idea, or a not-so-great idea?
    Yes and No.
    If these systems are basically living behind a router and not
    accessable to the outside world, then only people with access
    to your system.
    In my case I use my real name as my public name, so it is an easy
    guess for someone to figure out I use 'harris' as my Mac OS X short
    name.
    I do not generally publish my system name, and I never publish an
    internet accessable DNS name nor an IP address that is accessable
    via the internet. I will publish 10..*. and 192.168.. addresses
    as these are private non-routing IP addresses used by home routers
    for private networks not accessable from the internet.
    But if you feel uncomfortable using real names, IP address,
    or system names, then use pseudo names and addresses,
    such as '[email protected]'
    or '[email protected]'
    or '[email protected]'
    or '[email protected]',
    etc...
    If you follow the basic pattern, most people will figure out
    what you mean, without giving out any information.

  • Terminal Server Question

    I have inherited a system that has a terminal server set up for remote connections. How do I get into the individual lines?
    It is a:
    dc4-tsv-02#sh inv
    NAME: "2821 chassis", DESCR: "2821 chassis"
    PID: CISCO2821 , VID: V04 , SN: FTX1222A00S
    NAME: "High Speed Wan Interface card with 16 RS232 async ports(HWIC-16A)", DESCR: "High Speed Wan Interface card with 16 RS232 async ports(HWIC-16A)"
    PID: , VID: V01 , SN: FOC12114NTR
    NAME: "High Speed Wan Interface card with 16 RS232 async ports(HWIC-16A)", DESCR: "High Speed Wan Interface card with 16 RS232 async ports(HWIC-16A)"
    PID: , VID: V01 , SN: FOC12114NXH
    NAME: "Virtual Private Network (VPN) Module", DESCR: "Encryption AIM Element"
    PID: AIM-VPN/EPII-PLUS , VID: V02 , SN: FOC12184MGV
    and is running:
    dc4-tsv-02#sh ver
    Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(18a), RELEASE SOFTWARE (fc3)
    I looked at the confguration guide at javascript:newWin('http://www.cisco.com/en/US/tech/tk801/tk36/technologies_configuration_example09186a008014f8e7.shtml') and my TS does not have any of the "ip host" commands.
    Is this important given that my connections are all async consoles? What is the syntax for connecting to the individual async lines? I tried connect, etc. to no avail. The lines are all set up like this one:
    interface Async0/0/0
    no ip address
    encapsulation slip
    The lines appear to be live:
    dc4-tsv-02#sh line
    Tty Line Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
    0 0 CTY - - - - - 0 0 0/0 -
    1 1 AUX 9600/9600 - - - - - 0 0 0/0 -
    0/0/0 2 TTY 9600/9600 - - - - - 4 0 0/0 -
    0/0/1 3 TTY 9600/9600 - - - - - 1 0 0/0 -
    0/0/2 4 TTY 9600/9600 - - - - - 1 0 0/0 -
    0/0/3 5 TTY 9600/9600 - - - - - 1 0 0/0 -
    0/0/4 6 TTY 9600/9600 - - - - - 4 12674 0/0 -
    0/0/5 7 TTY 9600/9600 - - - - - 1 140 0/0 -
    0/0/6 8 TTY 9600/9600 - - - - - 1 0 0/0 -
    0/0/7 9 TTY 9600/9600 - - - - - 2 0 0/0 -
    0/0/8 10 TTY 9600/9600 - - - - - 2 2619168 0/0 -
    0/0/9 11 TTY 9600/9600 - - - - - 2 0 0/0 -
    etc.
    Thanks in advance!

    Yes, that helped. I found the information through another source in the meantime (http://books.google.com/books?id=UbuEHLfhNmMC&pg=PA370&lpg=PA370&dq=connect+async+line+cisco+console&source=bl&ots=J5mBA0_clW&sig=fpvGz6W_xikAzImRdnaWZNMIoHs&hl=en&ei=aBnrSoqsHI2zlAfE9YCABQ&sa=X&oi=book_result&ct=result&resnum=8&ved=0CCcQ6AEwBzgU#v=onepage&q=connect%20async%20line%20cisco%20console&f=false)
    The "gotcha" here was to note that I needed to execute the telnet x.x.x.x zzzz from the terminal server host (x.x.x.x) itself.
    Thanks for the assist though - I rated your post accordingly.

  • XFCE Terminal ? (Question Mark) Characters

    I think special characters are not displayed correctly on my XFCE terminal:
    I think my locale is OK:
    [jiewmeng@JM backbone-aura-try]$ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=en_US.UTF-8
    These are set in
    # ~/.bashrc
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    So whats the problem? My console font is set to DejaVu Sans Mono. I tried afew others but got a similar result.

    cookies wrote:http://ubuntuforums.org/showthread.php?t=1806330 might help.
    I think that's a completely different issue. 'tree' doesn't print file permission, it uses utf8 symbols to print lines:
    $ tree
    ├── 1
    ├── 1.wav
    ├── 2
    ├── 2.wav
    ├── 3
    ├── 3.wav
    ├── 4
    ├── 4.wav
    ├── 5
    ├── 5.wav
    ├── 6
    ├── 6.wav
    ├── 7
    └── 7.wav

  • Early Termination Fee question

    My wife and I just upgraded our phones last August but we've recently had some medical trouble with our son and can't afford Verizon anymore. I'm looking to switch to T Mobile but I need to make sure we can afford the termination fees until we're reimbursed. Is it just -$10 for every month of service we've had or are there other factors? We're not in the edge program and just paid the upgrade discount price for both of our phones (I have the Lumia Icon and she has the HTC M8 One).  Thanks!

    Yes, for each line it would be $350 - $10 for each month you complete of your contract.
    So if you purchased the phones August 15, your ETF would currently be $300 x 2 lines = $600 and drop down to $580 on February 15.

  • Terminal/Unix question

    when I open terminal it appears to open in the account I am using. I tried a cd to go up a level with no luck.
    My objective is to get to the Users folder and make temporary permission changes.
    I tried booting with the system disk but could only access the contents of that disc.
    aluminum PB G4   Mac OS X (10.4.8)  

    From the terminal help thing:
    to change permissions for an item, use the chmod command. The syntax of the command is as follows:
    chmod securitygroup [changetype] [permission] [file or directory]
    The options for each item in the command are described below.
    Securitygroup (The person or group whose permission you are changing.)
    u - user
    g - group
    o - other
    all - all
    Changetype (Whether you are adding or subtracting the permission.)
    "+" add permission
    "-" subtract permission
    Permission (The permission you are changing.)
    r - read
    w - write
    x - execute
    File or directory: The name of the file or directory to change.
    ex: chmod ugo +rwx /users
    That should add the ability to read, write, and execute to anyone (I tried the 'all' option and it didn't work for me). I'm not positive this is correct but it worked for me.
    macbook   Mac OS X (10.4.8)  

Maybe you are looking for

  • Macbook won't print to epson DX4850

    I my new macbook 2 weeks ago and am trying to hook up my Epson all-in-one 4850 printer. Basically I can't seem to install a driver. I've lost the original cd...so tried to download from the epson website for my model and for my macs operating system.

  • How to restrict change type in CC31

    Hi , I have a new requirement in which I need to restrict change types in txn CC31 (Create ECR).onlya set of people should create a ECR with one change type and another set of ppl with another change type, but I am not able to find any auth object wi

  • Problem with I/O programming

    I am trying to write a program that reads records from one really huge text file (about 2 GB) and copies these records to several smaller files, with only certain number of record in each. I was able to write this: import java.io.*; import java.util.

  • Clearing document

    HI I have a question for A/R finance module: I create an invoice in a customer account i.e 180000000 in 5200000 a/c i received payment and make a deposit(same amount as invoice) in that customer a/c...  a 1400000000 is created i clear the 18 against

  • Sending oracle report direct to a printer

    Hi guys, am using run_report_object to call my report, meanwhile I set report destination parameter(on the report i created on forms that calls the report itself) to printer, but its not printing. please I will highly appreciate any useful code thank