苟活 carries strong negative connotations: living in a way that compromises one's integrity, dignity, or principles. It often appears in literary and historical contexts. Compare:
偷生 (to cling to life ignominiously) and
苟且偷生 (to muddle through life ignominiously).