Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Saturday

to transfer file by pscp (putty scp) to sftp (secured ftp) server:

source file: source1.txt
server ip : 61.155.5.15
server shh port : 2222
destination file:d\target1.txt

command line: 
pscp  -l al -P 2222 source1.txt user@67.155.5.15:d\target1.txt

pscp help:

PuTTY Secure Copy client
Release 0.57
Usage: pscp [options] [user@]host:source target
       pscp [options] source [source...] [user@]host:target
       pscp [options] -ls [user@]host:filespec
Options:
  -p        preserve file attributes
  -q        quiet, don't show statistics
  -r        copy directories recursively
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -P port   connect to specified port
  -l user   connect with specified username
  -pw passw login with specified password
  -1 -2     force use of particular SSH protocol version
  -C        enable compression
  -i key    private key file for authentication
  -batch    disable all interactive prompts
  -unsafe   allow server-side wildcards (DANGEROUS)
  -V        print version information
  -sftp     force use of SFTP protocol
  -scp      force use of SCP protocol


Friday

OpenSSHd + Cygwin on Windows XP

Found a good HOWTO-style article on how to set up OpenSSH to run as a daemon under Cygwin for Windows
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
The quick outline is:
Install Cygwin, make sure you include the OpenSSH package since it's not included in the default install
Run '# mkdir -p /home/$username' and then edit /etc/passwd accordingly to create a sane home directory structure
Run '# ssh-host-config' to generate host keys, add an 'sshd' privsep user, and install sshd as a service
Run '# sc query sshd' to verify that the service is running
Run '# ssh-user-config' as necessary to generate private/public SSH keys for users if desired

more...

make ubuntu business casual

to make ubuntu business casual - make it black remove background: gsettings set org.gnome.desktop.background picture-options ...