Sponsored Content
Full Discussion: SSH syntax error
Special Forums Cybersecurity SSH syntax error Post 302858709 by j_wealleans on Tuesday 1st of October 2013 07:02:57 AM
Old 10-01-2013
SSH syntax error

I have been asked to look at a problem with implementing SSH on an HP-UX server which a colleague has set up. Users connect through PuTTY. When I try to establish a connection I see the following message:
Code:
 Usage: -ssh [options] host [command]
  Options:
    -l user     Log in using this user name.
    -n          Redirect input from /dev/null.
    -F config   Config file (default: ~/.ssh/config).
    -A          Enable authentication agent forwarding.
    -a          Disable authentication agent forwarding (default).
    -X          Enable X11 connection forwarding.
    -x          Disable X11 connection forwarding (default).
    -i file     Identity for public key authentication (default: ~/.ssh/identity)
    -t          Tty; allocate a tty even if command is given.
    -T          Do not allocate a tty.
    -h          Display basic help message .
    -k          Disables forwarding (delegation) of GSSAPI credentials.
    -v          Verbose; display verbose debugging messages.
                Multiple -v increases verbosity.
    -V          Display version number only.
    -q          Quiet; don't display any warning messages.
    -f          Fork into background after authentication.
    -e char     Set escape character; ``none'' = disable (default: ~).
    -c cipher   Select encryption algorithm
    -m macs     Specify MAC algorithms for protocol version 2.
    -p port     Connect to this port.  Server must be on the same port.
    -L listen-port:host:port   Forward local port to remote address
    -R listen-port:host:port   Forward remote port to local address
                These cause -ssh to listen for connections on a port, and
                forward them to the other side by connecting to host:port.
    -D port     Enable dynamic application-level port forwarding.
    -C          Enable compression.
    -Y          Enables trusted X11 forwarding.
    -M          Place ssh into master mode for connection Sharing.
    -N          Do not execute a shell or command.
    -g          Allow remote hosts to connect to forwarded ports.
    -1          Force protocol version 1.
    -2          Force protocol version 2.
    -4          Use IPv4 only.
    -6          Use IPv6 only.
    -o 'option' Process the option as if it was read from a configuration file.
    -s          Invoke command (mandatory) as SSH2 subsystem.
    -S ctl      Specifies control socket for connection sharing.
    -b addr     Local IP address.

I have tried setting up traces on the server and running PuTTY interactively from a command line but no trace information is being generated. I think the client is passing authentication but whatever command is being issued on the server to start the shell is incorrectly formed.

Can anyone please advise where I can find this command or how I can go about amending it? This is an area about which I know almost nothing.

Thank you.

Last edited by jim mcnamara; 10-01-2013 at 08:58 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

2. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

3. Shell Programming and Scripting

sed error : Syntax error: redirection unexpected

My script is throwing the error 'Syntax error: redirection unexpected' My line of code.. cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3 HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies

4. Programming

Newbie Question.. -> error: syntax error before ';' token

Hello, the following is generating a error at the line "tmprintf(&tmBundle, _TMC("{0}"),Prompt);"... a bit lost as I am diving into this debug... Thank you in advance... int H_YesNo(TMCHAR *Prompt, int DefVal) { TMCHAR YesNo = '\0'; tmprintf(&tmBundle, _TMC("{0}"),Prompt); while... (3 Replies)
Discussion started by: reelflytime
3 Replies

5. Shell Programming and Scripting

ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected.

Help please! :confused: I have the following error with the following file and the emails are not arriving to the email, any idea please? ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected. FECHA=`date +%d%m%y%H%M`... (2 Replies)
Discussion started by: villenan
2 Replies

6. Shell Programming and Scripting

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies

7. Linux

Ambiguous redirect error and syntax error when using on multiple files

Hi, I need help on following linux bash script. When I linux commands for loop or while loop on individual file it runs great. but now I want the script to run on N number of files so it gives me ambiguous redirect error on line 12 and syntax error on line 22 : (pls help ); #!/bin/bash #... (16 Replies)
Discussion started by: Madhusudan Das
16 Replies

8. Shell Programming and Scripting

awk syntax error with ssh

I am attempting to ssh to a server and grab the line from /etc/group if it contains a specific GID. Example line from /etc/group: mysql:!:64600:mysql Run locally on <host>: # awk -F: '$3 == 64600 {print $1}' /etc/group mysql Attempt to ssh to <host> and execute: # ssh <host>... (3 Replies)
Discussion started by: port43
3 Replies

9. Shell Programming and Scripting

IF section problem. syntax error: unexpected end of file error

Hello, I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time. My script: returned=`tail -50 SapLogs.log | grep -i "Error"` echo $returned if ; then echo "There is no errors in the logs" fi And after... (10 Replies)
Discussion started by: jedzio
10 Replies
psftp(1)							 PuTTY tool suite							  psftp(1)

NAME
psftp - interactive SFTP (secure file transfer protocol) client SYNOPSIS
psftp [options] [user@]host DESCRIPTION
psftp is an interactive text-based client for the SSH-based SFTP (secure file transfer) protocol. OPTIONS
The command-line options supported by psftp are: -V Show version information and exit. -pgpfp Display the fingerprints of the PuTTY PGP Master Keys and exit, to aid in verifying new files released by the PuTTY team. -b batchfile Use specified batchfile. -bc Output batchfile commands. -be Don't stop batchfile processing on errors. -v Show verbose messages. -load session Load settings from saved session. -P port Connect to port port. -l user Set remote username to user. -batch Disable interactive prompts. -pw password Set remote password to password. CAUTION: this will likely make the password visible to other users of the local machine (via com- mands such as `w'). -1 Force use of SSH protocol version 1. -2 Force use of SSH protocol version 2. -C Enable SSH compression. -i path Private key file for authentication. COMMANDS
For a list of commands available inside psftp, type help at the psftp> prompt. MORE INFORMATION
For more information on psftp it's probably best to go and look at the manual on the PuTTY web page: http://www.chiark.greenend.org.uk/~sgtatham/putty/ BUGS
This man page isn't terribly complete. See the above web link for better documentation. PuTTY tool suite 2004-03-24 psftp(1)
All times are GMT -4. The time now is 03:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy