File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public function testUpload()
1111 ->to ('localhost ' )
1212 ->onPort (22 )
1313 ->as ('travis ' )
14- ->withKeyPair ( ' /home/travis/.ssh/id_rsa.pub ' , '/home/travis/.ssh/id_rsa ' )
14+ ->withPrivateKey ( '/home/travis/.ssh/id_rsa ' )
1515 ->connect ();
1616
1717 $ remotePath = __DIR__ . '/../fixtures/upload.txt ' ;
@@ -27,7 +27,7 @@ public function testDownload()
2727 ->to ('localhost ' )
2828 ->onPort (22 )
2929 ->as ('travis ' )
30- ->withKeyPair ( ' /home/travis/.ssh/id_rsa.pub ' , '/home/travis/.ssh/id_rsa ' )
30+ ->withPrivateKey ( '/home/travis/.ssh/id_rsa ' )
3131 ->connect ();
3232
3333 $ remotePath = __DIR__ . '/../fixtures/file.txt ' ;
@@ -43,7 +43,7 @@ public function testSSHConnectionWithKeyPair()
4343 ->to ('localhost ' )
4444 ->onPort (22 )
4545 ->as ('travis ' )
46- ->withKeyPair ( ' /home/travis/.ssh/id_rsa.pub ' , '/home/travis/.ssh/id_rsa ' )
46+ ->withPrivateKey ( '/home/travis/.ssh/id_rsa ' )
4747 ->connect ();
4848
4949 $ command = $ connection ->run ('echo "Hello world!" ' );
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public function testNoHostname()
1212 (new SSHConnection ())
1313 ->onPort (22 )
1414 ->as ('travis ' )
15- ->withKeyPair ( ' /home/travis/.ssh/id_rsa.pub ' , '/home/travis/.ssh/id_rsa ' )
15+ ->withPrivateKey ( '/home/travis/.ssh/id_rsa ' )
1616 ->connect ();
1717 }
1818
@@ -23,7 +23,7 @@ public function testNoUsername()
2323 (new SSHConnection ())
2424 ->to ('localhost ' )
2525 ->onPort (22 )
26- ->withKeyPair ( ' /home/travis/.ssh/id_rsa.pub ' , '/home/travis/.ssh/id_rsa ' )
26+ ->withPrivateKey ( '/home/travis/.ssh/id_rsa ' )
2727 ->connect ();
2828 }
2929
You can’t perform that action at this time.
0 commit comments