Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2016, 06:31 AM
alexvai alexvai is offline
Registered User
 
Join Date: Jan 2014
Posts: 11
Change account home directory

Hi,

Is it possible to set linux account remote directory in securecrt?
When i connecting to some account, i want that it will "cd" to other directory
Reply With Quote
  #2  
Old 02-22-2016, 09:57 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 931
Quote:
Originally Posted by alexvai View Post
Is it possible to set linux account remote directory in securecrt? When i connecting to some account, i want that it will "cd" to other directory
Sure can!
  • Open your session options and select the Connection -> Logon Actions category.
  • Remove the two default username and password entry examples that are always present in a default configuration.
  • Add a new entry and enter into the Expect field the last couple of characters that appear as part of your shell prompt (make sure these characters don't show up in any other part of the login text or MOTD (message of the day) blurb; otherwise, you'll need to specify the full shell prompt so that it's unique enough for SecureCRT to know when it's "safe" to act.
  • Specify your 'cd folderpath' command in the Send field.

I've attached a graphic that shows how this is accomplished for an 'ls -al' command to be sent initially (and where my shell prompt ends with ']$ '). Feel free to use it as an example to implement your own logon action automation.

--Jake
Attached Images
File Type: png SCRT_AutomateInitialCommand_LogonActionsExample.png (72.9 KB, 320 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:42 PM.