title: SSH Paramiko command is not changing the directory in remote server
body: <p>I am trying to change the directory to /etc/init.d using SSH paramiko module and cd command. It is not changing the directory. It is at default directory 'root' after logged in to the server</p>
  
  <pre><code>def StopAll(path,IP,ROOT,PASSWD):
      ssh = paramiko.SSHClient()
      ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
      ssh.connect('%s'%IP, username='%s'%ROOT,password='%s'%PASSWD)
      stdin, stdout, stderr = ssh.exec_command("cd /etc/init.d")
      stdin, stdout, stderr = ssh.exec_command("pwd")
      print stdout.read().strip()
  </code></pre>
  
  <p>Output : ./Installation.py conf/Input.conf</p>
  
  <p><strong>/root</strong></p>
  
  <p>Please tell me where is the problem in code .</p>