Saving the PuTTY session logging - putty

I am using PuTTY for logging in to Solaris/Linux servers.
Under Sessions → Logging, we see 'Session Logging' settings. I am not able to save the settings for permanent use.
Isn't such feature available or am I wrong somewhere?
PS: I want to save the log file path, 'All session output' as a 'forever setting'.

It works fine for me, but it's a little tricky :)
First open the PuTTY configuration.
Select the session (right part of the window, Saved Sessions)
Click Load (now you have loaded Host Name, Port and Connection type)
Then click Logging (under Session on the left)
Change whatever settings you want
Go back to Session window and click the Save button
Now you have settings for this session set (every time you load session it will be logged).

I always have to check my cheatsheet :-)
Step 1: right-click on the top of putty window and select 'Change settings'.
Step 2: type the name of the session and save.
That's it!.
Enjoy!

To set permanent PuTTY session parameters do:
Create sessions in PuTTY. Name it as "MyskinPROD"
Configure the path for this session to point to "C:\dir\&Y&M&D&T_&H_putty.log".
Create a Windows "Shortcut" to C:...\Putty.exe.
Open "Shortcut" Properties and append "Target" line with parameters as shown below:
"C:\Program Files (x86)\UTL\putty.exe" -ssh -load MyskinPROD user#ServerIP -pw password
Now, your PuTTY shortcut will bring in the "MyskinPROD" configuration every time you open the shortcut.
Check the screenshots and details on how I did it in my environment:
http://www.evernote.com/shard/s184/sh/93ebf08f-fde2-4dad-bccf-961c98fb614b/983d2ff8f2d1e6184318825d68b0b829

This is a bit confusing, but follow these steps to save the session.
Category -> Session -> enter public IP in Host and 22 in port.
Connection -> SSH -> Auth -> select the .ppk file
Category -> Session -> enter a name in Saved Session -> Click Save
To open the session, double click on particular saved session.

Related

Debug a file on virtual Vagrant box with Xdebug

I have a Vagrant virtual machine, with a website running on it, on my MacBook.
I would like to inspect what is in a variable called $logs. I have set the cookie in my browser using the Chrome extension, and I am listening for PHP debug connections, and I have set a breakpoint. If I select the 'Run' menu and click 'Debug sitelog.module', I get some errors.
I'm not sure how to configure this? My ultimate goal is to inspect the contents of $logs. Thanks.
I do not use cookies anymore for debugging as I found easier to debug by enabling remote debugging in xdebug.
In any case I suggest that you first create a PHP Web application and define a Server for that web application. To do this:
With the Navigation bar visible (View | Navigation Bar), the available run/debug configurations are displayed in the run/debug configuration selector in the Run area.
In the Run/Debug Configuration dialog box, click + (add) on the toolbar. The drop-down list shows the default run/debug configurations. Select the desired configuration type (ie: PHP Web Application).
Set up a server for this configuration by clicking on the ... icon next to the Server dropdown.
On the Servers configuration, fill in the name, host and port and check the Use path mappings checkbox.
Define your path mapping, by selecting on the left side (your host machine) the desired path and then providing the path to the same location in your guest (press enter on the input field once you define the path for the guest machine).
With this you should be able to debug using the XDEBUG cookie. If you would like to try the remote debugging option (which IMO is much simpler) then add this to your xdebug.ini
zend_extension=xdebug.so
xdebug.auto_trace="0"
xdebug.trace_output_dir="/vagrant"
xdebug.trace_output_name="trace.%c"
xdebug.trace_format="2"
xdebug.trace_options="0"
xdebug.collect_includes="1"
xdebug.collect_params="0"
xdebug.collect_return="0"
xdebug.collect_vars="0"
xdebug.default_enable="1"
xdebug.extended_info="1"
xdebug.manual_url="http://www.php.net"
xdebug.max_nesting_level="256"
xdebug.show_error_trace="0"
xdebug.show_exception_trace="0"
xdebug.show_local_vars="0"
xdebug.show_mem_delta="1"
xdebug.dump.COOKIE="NULL"
xdebug.dump.ENV="NULL"
xdebug.dump.FILES="NULL"
xdebug.dump.GET="NULL"
xdebug.dump.POST="NULL"
xdebug.dump.REQUEST="NULL"
xdebug.dump.SERVER="NULL"
xdebug.dump.SESSION="NULL"
xdebug.dump_globals="1"
xdebug.dump_once="1"
xdebug.dump_undefined="0"
xdebug.overload_var_dump="2"
xdebug.profiler_enable="0"
xdebug.profiler_output_dir="/vagrant"
xdebug.profiler_output_name="cachegrind.out.%p"
xdebug.profiler_enable_trigger="0"
xdebug.profiler_append="0"
xdebug.profiler_aggregate="0"
xdebug.remote_enable="1"
xdebug.remote_handler="dbgp"
xdebug.remote_host="192.168.33.1"
xdebug.remote_mode="req"
xdebug.remote_port="9000"
xdebug.remote_autostart="1"
xdebug.remote_log=""
xdebug.idekey=""
xdebug.var_display_max_data="512"
xdebug.var_display_max_depth="2"
xdebug.var_display_max_children="128"
Make sure you adjust the remote_host ip if needed. Once you save this changes to your xdebug.ini, all you need to do to start debugging is to enable the Start listening for PHP Debug Connections icon (looks like a telephone).
Reference:
How to set up Run/Debug Configurations

How to change computer name for local shared folder Windows 7

Hi Everyone i have a question regarding my own host file that impacts my shared folder name.
127.0.0.1 JEC
I place this in my host file without other IP sharing my local host.
And i would like to access the shared folder by
//JEC/SharedFolderName/Something
When I tried my Computer name and also localhost itself it passed through without any password prompt.
However when i wanted to try for //JEC/SharedFolderName/Something it just keep prompting for password. Despite keying the correct password it would throw an error message saying password is wrong.
I am using windows 7 computer.
To add new name
Go to
C:\Windows\System32\drivers\etc\
Open the file Hosts in notepad and add below line and save it.
127.0.0.1 JEC
Disable password protected sharing
Go to Control Panel
If Control Panel View by is Category
Network and Internet--> Network and Sharing Center--> Change advanced sharing settings--> Under Password protected sharing--> Select "Turn off password protected sharing"
If Control Panel View by is Large icons/Small icons
Go to Control Panel--> Network and Sharing Center--> Change advanced sharing settings--> Under Password protected sharing--> Select "Turn off password protected sharing"

Windows eventlog and log file

How i can generate a log file which contains which user edited and which file in a shared folder. multiple users is having rights to read/write/delete, No .exe execution is happening.
Please help how i can create that kind of log file.
Turn on Object Access auditing using Local Security Policy (under Local Policies/Audit Policy) or ask Active Directory administrator to configure this setting using a GPO.
Using Explorer, right click on the folder where you want auditing and select Security
Click Advanced button and then select Auditing Change Auditing tab
Click Add and add 'EveryOne' group
From the list of available entries, select Write/AppendData (and Delete, DeleteFolder)

Parameters with Connection Profile

In BIRT, is it possible to setup a connection profile which accepts the username/password as a parameter?
With a standard data source, I can use the "Property Binding" tab to set a report parameter to be used as the username an password. However, when I create a data source for a connection profile, I do not see a "Property Binding" tab. I also do not see any way to edit an existing data source in a connection profile or how to get to more options for the data source (when it is part of a connection profile).
Screenshot of the Property Binding tab which is available for non-Connection Profile Data Sources:
Screenshot of the Create Data Source for Connection Profile - no property binding tab :(
U can edit exsisting connection profile.
Select Menu Window-Show View->Others->Data source explorer...Now u can view existing profiles.right click and take properties of corresponding profile,here u can edit username and password

Do different tabs in browser result in different sessions for server?

If I open a connection to the server from firefox browser, and then I open a new tab within the same instance of browser to make a connection to the server, is it considered one session to server or considered as two diff sessions?
It's the same session (you can easily test this out yourself).
It seems to be the same session.
However, if I use diff user to login, both seems to be categorized under same session? Is this the correct behaviour?
If you click a link on the current session to open it up in a new tab, then it'sthe same session. If you just open up a blank window and log in again, then, to the best of my knowledge,it's a new session.

Resources