ssh command in unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ssh command in unix
# 1  
Old 09-09-2010
ssh command in unix

what does -r option mean for ssh commad. what does below commad do?

ssh -r command
# 2  
Old 09-09-2010
man ssh
# 3  
Old 09-09-2010
Nothing it seems:
Code:
$ ssh -r ls
ssh: illegal option -- r

# 4  
Old 09-09-2010
You meant lowercase or uppercase?

If it is the last one, here is from the man pages, used for port forwarding:
Code:
     -R port:host:hostport
             Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side.  This works by allocating a socket to
             listen to port on the remote side, and whenever a connection is made to this port, the connection is forwarded over the secure channel, and a connection is made
             to host port hostport from the local machine.  Port forwardings can also be specified in the configuration file.  Privileged ports can be forwarded only when log-
             ging in as root on the remote machine.  IPv6 addresses can be specified with an alternative syntax: port/host/hostport.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. UNIX for Dummies Questions & Answers

SSH command

Hi All, The code is running from A server cat queuecreation.sh ssh $1 echo "$3" | runmqsc "$2" Running the script as below ./queuecreation.sh <servername> <Queuemanagername> <QueuecreationCommand> ./queuecreation.sh Bserver QASSBSSS 'DEFINE QL(TEST)' The issue here is, ssh... (3 Replies)
Discussion started by: Anusha M
3 Replies

3. Shell Programming and Scripting

ssh command help

I am running a ssh command like this : ssh abc1234 '. /opt/dba/oraadmin/tools/oraenv.sh -S tstd1; export PATH=$PATH:$ORACLE_HOME/bin;echo "select count(*) from (select b.username from dba_sys_privs a,dba_users b where a.privilege='CREATE SESSION' and a.grantee=b.username union select b.username... (4 Replies)
Discussion started by: talashil
4 Replies

4. Shell Programming and Scripting

UNIX script abruptly ending due to ssh command

Below UNIX script abruptly ends while reading second line from file. When I comment 'ssh' command the script works as expected. I think I will have to run ssh command in a different process, but haven't got a handle yet as regards to how to do that. Any help in resolving this problem is highly... (1 Reply)
Discussion started by: jeeteshkc
1 Replies

5. Shell Programming and Scripting

Net::SSH::Perl->Execute any unix command & display the output in a proper form

Net::SSH::Perl ...... how to print the output in a proper format my $cmd = "ls -l"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("$cmd"); print $stdout; the script works fine, but i am unable to see the output... (2 Replies)
Discussion started by: gsprasanna
2 Replies

6. UNIX for Dummies Questions & Answers

ssh command

hi to you all, Is it possible to change all subfolder's permission to 755 and all the files' permission (regardless of its filetype) t0 644 in 1 command? if so what would be the complete command for this ? i tried chmod -R permission /folder -- but if will give all the files and subfolders... (3 Replies)
Discussion started by: arsonist
3 Replies

7. SCO

sco unix 5.0.4 , 5.0.6 SSH

namaskar,hello i want to connect in unix server as user from ssh login and what i read from document i must dowload x11 , web , etc patch from SCO ftp and after downloading i am not able to connect remote ssh with my SCO server pls. help me for same 1. what i should define in Sco server and... (0 Replies)
Discussion started by: pankajbraval
0 Replies

8. UNIX for Dummies Questions & Answers

SSH UNIX to Windows

Anyone who has tried creating public and private key from UNIX as client and Windows as server? any idea on how to do this? (1 Reply)
Discussion started by: punyenye
1 Replies

9. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

10. UNIX for Advanced & Expert Users

How to restrict Core file generation after scp (of SSH) command executed in UNIX

Hi, I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX. Could any one please tell me how to restrict core file generatation by using scp command. (4 Replies)
Discussion started by: nrsekhar
4 Replies
Login or Register to Ask a Question