.ssh/config usage

Get help with using the PHP Secure Communications Library.

Moderator: Nuxius

Forum rules
The purpose of this forum is to provide support for phpseclib, a pure PHP SSH / SFTP / RSA library.

Posts by new users are held in a moderation queue and are not publicly visible until the post is approved.

.ssh/config usage

Postby napolux » Mon Aug 12, 2013 1:20 pm

Is there a way to make the library interact with the .ssh/config file?
napolux
Traveler
 
Posts: 4
Joined: Tue Jul 30, 2013 1:21 pm

Re: .ssh/config usage

Postby TerraFrost » Tue Aug 13, 2013 12:35 pm

Not currently, no.
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: .ssh/config usage

Postby napolux » Tue Aug 13, 2013 1:58 pm

TerraFrost wrote:Not currently, no.


Any plan or work-around for this?
napolux
Traveler
 
Posts: 4
Joined: Tue Jul 30, 2013 1:21 pm

Re: .ssh/config usage

Postby TerraFrost » Tue Aug 13, 2013 2:15 pm

idk that I've thought about it or not lol. If I did I didn't make any notes about it.

I assume the main feature you're looking to use is that of aliases? eg.

Code: Select all
Host github-project1
    User git
    HostName github.com
    IdentityFile ~/.ssh/github.project1.key

Host github-org
    User git
    HostName github.com
    IdentityFile ~/.ssh/github.org.key

Host github.com
    User git
    IdentityFile ~/.ssh/github.key

?

I'll have to think about a good way to do that. I don't know that I want to modify the baseline SSH2.php to do that as I think that ought to be "pure" SSH. Rather, I think it ought to be something that lives in a new Net/SSH2 directory as a plugin of sorts.

Let me think about it..
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: .ssh/config usage

Postby napolux » Wed Aug 14, 2013 9:17 am

Thanks :P Can't wait for an update. In the meanwhile I'll try to figure out how can I deal with this limitation.
napolux
Traveler
 
Posts: 4
Joined: Tue Jul 30, 2013 1:21 pm


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 2 guests

cron