Find the answer to your Linux question:
Results 1 to 2 of 2
(All of this is happening on a new Win8 desktop, using Cygwin/MobaXTerm to SSH into a remote server behind another server) I recently modified my .bashrc file on Tesla, a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2013
    Posts
    2

    .bashrc ssh craziness


    (All of this is happening on a new Win8 desktop, using Cygwin/MobaXTerm to SSH into a remote server behind another server)
    I recently modified my .bashrc file on Tesla, a remote server at school, to include a function,
    Code:
    test () {
    echo $1
    }
    I then proceeded to set up ssh passwordless login, as I have used in the past. I didn't notice anything wrong before logging in without a password (ssh-keygen).

    Now, when I log in, as long as the function is active, very strange stuff appears on my screen:

    Code:
    bash
    !
    -r
    -z
    -f
    -z
    -bash: UID: readonly variable
    -z
    -bash: EUID: readonly variable
    -s
    -x
    -f
    /usr/bin/dircolors: /home/andrew/.dir_colors: No such file or directory
    empty
    1003
    
    bash
    
    -x
    -x
    1003
        1003
            1003
                bash
                    -s
                      -bash: alias: -=: invalid option
                                                      alias: usage: alias [-p] [name[=value] ... ]
                  bash
                      -bash: /home/andrew/.bash.expert: No such file or directory
                                                                                 bash
     bash
         -f
           ^[[>77;10001;0c^[[?1;2c01;0c;0c1;2c77;10001;0c^[[?1;2c^[[?1;2c;2c01;0c;2c1;2c^[[?1;2c^[[?1;2c[?1;2c^[[?1;2c^[[?1;2c;2c^[[?1;2c2c^[[?1;2c2c;0c^[[?1;2c^[[?1;2c7;10001;0c1;2c1;2c2c^[[?1;2c^[[?1;2cc;2c^[[?1;2cc77;10001;0c^[[?1;2c1;2c^[[?1;2c-x
    The terminal (Cygwin or MobaXTerm) proceeds to act rather strange after hitting ctr+c...

    Can anyone help me with this? I've been searching Google for longer than I care to admit, and I can't find anything.
    Last edited by werdnahman; 06-25-2013 at 03:44 PM. Reason: Solved...

  2. #2
    Just Joined!
    Join Date
    Jun 2013
    Posts
    2
    It just occurred to me that this is due to "test" being a function already, and so this function call is an 'unknown token', which results in an error, and some abomination being executed with the .bashrc file...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •