|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a special scenario with SSH. I need to sftp a file with in the server for different user. Say I have User Scott in Server A who created a file. Now Scott needs to transfer the file to John who is also a user of Server A. Here you may ask why don't you use cp command, but due to permissions of Destination folder we are unable to copy that file. I tried with creating the id_rsa.pub file for Scott and appended to John's Authorized_keys. But still it is asking password while connecting. To cross verify, I setup'ed a SSH connection from Server A to Server B. It is fine. Also tested the above mentioned scenario in another environment. It is also running fine. We can't do SSH with in the server ? I don't think so (Correct me). Any solutions for this ? Also alternatives. Thanks. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
To my knowledge SSH/SFTP/SCP could be executed on a remote machine or between 2 hosts, it does not work within a same host/ip/machine. Though you have 2 users the server is the same, hence you need to use
cp command. Since there is some permission issue while copying files, create a common directory where both the users can access the files and proceed further..
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
Then you would need to create a new group and add Scott and John as the only members to it and then place files in a common place
![]() |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
I think ACL can come to your help in this case.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH SSH encountered 1 errors during the transfer | Computergal2104 | UNIX for Dummies Questions & Answers | 1 | 08-10-2012 10:08 AM |
| Using ssh to add register key on ssh server | leaftree | Shell Programming and Scripting | 9 | 12-22-2009 01:55 PM |
| could not send commands SSH session with Net::SSH::Expect | hansini | Shell Programming and Scripting | 0 | 08-28-2009 12:56 AM |
| What's the difference between an SSH Client and an SSH Server? | PSC | Security | 1 | 07-19-2004 03:24 PM |
|
|