How to checkout code from deep server
1. Make tunnel to deep server
ssh -L 4444:deepserver.dyndns.org:2222 10.65.1.75 -N
2. Add tunnel svn config file
open ~/.subversion/config and add
sshtunnel = ssh -qp 4444 under tunnels
3. Checkout code
svn co svn+sshtunnel://localhost/srv/svn/repositories/TradingSystem
http://tomorrowisfriday.wordpress.com/2007/11/28/tunneling-subversion-for-the-svnssh-protocol/
Sunday, January 29, 2012
Friday, January 20, 2012
Monday, January 9, 2012
SSH
What Is SSH?
There are a couple of ways that you can access a shell (command line) remotely on most Linux/Unix systems. One of the older ways is to use the telnet program, which is available on most network capable operating systems. Accessing a shell account through the telnet method though poses a danger in that everything that you send or receive over that telnet session is visible in plain text on your local network, and the local network of the machine you are connecting to. So anyone who can "sniff" the connection in-between can see your username, password, email that you read, and commands that you run. For these reasons you need a more sophisticated program than telnet to connect to a remote host.
http://support.suso.com/supki/SSH_Tutorial_for_Linux
Monday, January 2, 2012
Linux user configurations
Newtork Configuration
# system-config-network
# /etc/init.d/network restart
Start samba ...
$system-config-samba
Status samba
#/sbin/service smb status
Restart Samba
#/sbin/service smb restart
Add user (auto)
#/usr/sbin/useradd auto
Check user info of and user
#id auto
Add group
#/usr/sbin/groupadd auto
Add user to a group
#/usr/sbin/usermod -G groupname username
Give permition of directories
#chown -R username.groupname directory
# system-config-network
# /etc/init.d/network restart
Start samba ...
$system-config-samba
Status samba
#/sbin/service smb status
Restart Samba
#/sbin/service smb restart
Add user (auto)
#/usr/sbin/useradd auto
Check user info of and user
#id auto
Add group
#/usr/sbin/groupadd auto
Add user to a group
#/usr/sbin/usermod -G groupname username
Give permition of directories
#chown -R username.groupname directory
Create VPN
How to Add new VPN account
log in to router using "ssh"
# en
# conf t //entering to configuration mode
# username priv password
Ex: username user1 priv 7 password userpwd // priv 7 for moderate privileges
Ex: username user1 priv 15 password userpwd // priv 15 for admin privileges
# end //exit from configuration mode
# exit //exit from router
To delete an existing VPN account
Use same syntax for creating account with "no" the beginning.
Ex: no username user1 priv 7 password userpwd
log in to router using "ssh"
# en
# conf t //entering to configuration mode
# username
Ex: username user1 priv 7 password userpwd // priv 7 for moderate privileges
Ex: username user1 priv 15 password userpwd // priv 15 for admin privileges
# end //exit from configuration mode
# exit //exit from router
To delete an existing VPN account
Use same syntax for creating account with "no" the beginning.
Ex: no username user1 priv 7 password userpwd
CISCO Switch
Useful commands to check configurations
How to bounce a cisco switch
- sh run //show run
- sh ip int br //show ip interface briefly
- sh int br //to check duplex mode
How to bounce a cisco switch
- Log in to the switch using "telnet".
- Go to enable mode using "en".
- Bounce switch using "reload".
- Log in to the switch using "telnet".
- Go to enable mode using "en".
- Go to configuration mode "conf t".
- Then select particular interface "interface Gi2/0/46" .
- Then "shutdown" and "no shutdown"
- Exit from configuration mode using "exit".
Subscribe to:
Posts (Atom)