|
Using an Escape Sequence with the SecureCRT® SFTP Tab
If you need to open an SFTP tab to the same directory you're working
on in your terminal window, you can cut down on some typing by using an
escape sequence which will allow you to use relative paths, rather than
the file menu or ALT+P (Command+P on the Mac) accelerator. This tip assumes you're using an SSH2
session.
Here is an example of how to set up and use an sftp-session escape sequence
that opens an SFTP tab in your current server-side working directory.
- In SecureCRT, go to Global Options / Terminal and check "Enable
execute escape sequence" in the Options group.
- Next, set up an alias, shell script, Perl script, or other mechanism
that will pass your current directory as an argument in a command. In
this example, the alias will be named "sftptab".
Send the following escape sequence from the remote system to open the
tab window. (You need to specify the current working directory because
SecureCRT doesn't know what directory you are currently in on the remote
side):
<esc>&&Bsftp-session <directory
to open in>\n
Under UNIX, you can use the following command:
echo "^[&&Bsftp-session `pwd`"
Note: To get the "^[" characters, type "CTRL+V","CTRL+[".
- Now that you have your alias "sftptab" set up, you can
use the following escape sequence to open a new SFTP tab in your current
working directory:
% pwd
/home/user/some/directory/that/would/take/a/lot/of/typing/to/cd/in/to
% sftptab
<New tab opens>
sftp> pwd
/home/user/some/directory/that/would/take/a/lot/of/typing/to/cd/in/to
Was this information helpful?
|
| Four Fast Ways to Learn More... |
| 1. Read or download one of our secure solutions white papers. |
2. Download
a free
30-day evaluation copy of our products. |
3. Let us help
define the right Secure Shell solution for your company. |
4. Subscribe to our monthly newsletter for tips, solutions ideas, and product news. |
|
| |
VShell, SecureCRT, SecureFX, Entunnel, CRT,
and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks
are the property of their respective owners. Site Map |
Legal Notices | Privacy
Policy | Refund
Policy
Copyright © 1995 -
VanDyke Software, Inc. All rights reserved.
|